Visual Console Refactor: added a new way to expose model data

Former-commit-id: 935960e7e21c2a655e9eb38afa04cbf96362aef7
This commit is contained in:
Alejandro Gallardo Escobar 2019-04-12 09:50:39 +02:00
parent 344e46bc4d
commit 179702979a
1 changed files with 11 additions and 0 deletions

View File

@ -103,6 +103,17 @@ abstract class Model
}
/**
* JSON representation of the model.
*
* @return string
*/
public function toArray(): array
{
return $this->data;
}
/**
* JSON representation of the model.
*