1 | <?php |
||
7 | abstract class Model implements ModelInterface |
||
8 | { |
||
9 | use Helper; |
||
10 | |||
11 | /** |
||
12 | * Convert model to array |
||
13 | * |
||
14 | * @return array |
||
15 | */ |
||
16 | public function toArray(): array |
||
39 | |||
40 | /** |
||
41 | * @param string $name |
||
42 | * @param mixed $value |
||
43 | * |
||
44 | * @throws \InvalidArgumentException |
||
45 | */ |
||
46 | public function __set(string $name, $value) |
||
54 | |||
55 | /** |
||
56 | * @param string $name |
||
57 | * |
||
58 | * @return mixed|null |
||
59 | */ |
||
60 | public function __get(string $name) |
||
67 | |||
68 | /** |
||
69 | * @param string $name |
||
70 | * |
||
71 | * @return bool |
||
72 | */ |
||
73 | public function __isset(string $name): bool |
||
77 | } |
||
78 |