| 1 | <?php |
||
| 7 | class Entity implements Contracts\Entity |
||
| 8 | { |
||
| 9 | protected $original = []; |
||
| 10 | protected $data = []; |
||
| 11 | |||
| 12 | 4 | public function __construct(array $data = null) |
|
| 16 | |||
| 17 | 4 | public function update($data) |
|
| 22 | |||
| 23 | 4 | public function __set($key, $value) |
|
| 31 | |||
| 32 | 4 | public function __get($key) |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @return int |
||
| 41 | */ |
||
| 42 | 4 | public function getId() |
|
| 46 | |||
| 47 | /** |
||
| 48 | * @return Entity |
||
| 49 | */ |
||
| 50 | 4 | public function setId($id) |
|
| 55 | |||
| 56 | /** |
||
| 57 | * @return array |
||
| 58 | */ |
||
| 59 | 4 | public function toArray() |
|
| 63 | |||
| 64 | /** |
||
| 65 | * @return array |
||
| 66 | */ |
||
| 67 | 1 | public function pullChanges() |
|
| 80 | } |
||
| 81 |