| 1 | <?php |
||
| 5 | class Model |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Allow data to be filled via the constructor. |
||
| 9 | * |
||
| 10 | * @param iterable $data |
||
| 11 | */ |
||
| 12 | 27 | public function __construct($data = null) |
|
| 18 | |||
| 19 | /** |
||
| 20 | * Get an associative array of the attributes. |
||
| 21 | * |
||
| 22 | * @return array |
||
| 23 | */ |
||
| 24 | 27 | public function getAttributes() |
|
| 28 | |||
| 29 | /** |
||
| 30 | * Get the names of the attributes on this model. |
||
| 31 | * |
||
| 32 | * @return array |
||
| 33 | */ |
||
| 34 | 1 | public function getAttributeNames() |
|
| 38 | |||
| 39 | /** |
||
| 40 | * Populate the model with the supplied data. |
||
| 41 | * |
||
| 42 | * @param iterable $data |
||
| 43 | * @return $this |
||
| 44 | */ |
||
| 45 | 25 | public function fill($data) |
|
| 53 | } |
||
| 54 |