1 | <?php |
||
11 | abstract class Model implements ModelInterface |
||
12 | { |
||
13 | use Helper; |
||
14 | |||
15 | /** |
||
16 | * Convert model to array |
||
17 | * |
||
18 | * @return array |
||
19 | */ |
||
20 | public function toArray(): array |
||
59 | |||
60 | /** |
||
61 | * @param string $name |
||
62 | * @param mixed $value |
||
63 | * |
||
64 | * @throws \InvalidArgumentException |
||
65 | */ |
||
66 | public function __set(string $name, $value) |
||
74 | |||
75 | /** |
||
76 | * @param string $name |
||
77 | * |
||
78 | * @return mixed|null |
||
79 | */ |
||
80 | public function __get(string $name) |
||
87 | |||
88 | /** |
||
89 | * @param string $name |
||
90 | * |
||
91 | * @return bool |
||
92 | */ |
||
93 | public function __isset(string $name): bool |
||
97 | } |
||
98 |