Total Complexity | 5 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
17 | class Animal extends MagicActiveRecord |
||
18 | { |
||
19 | private string $does; |
||
20 | |||
21 | public function getTableName(): string |
||
22 | { |
||
23 | return 'animal'; |
||
24 | } |
||
25 | |||
26 | public function __construct(ConnectionInterface $db) |
||
27 | { |
||
28 | parent::__construct($db); |
||
29 | |||
30 | $this->type = static::class; |
||
31 | } |
||
32 | |||
33 | public function getDoes() |
||
36 | } |
||
37 | |||
38 | public function instantiate($row): ActiveRecordInterface |
||
39 | { |
||
40 | $class = $row['type']; |
||
41 | |||
42 | return new $class($this->db()); |
||
43 | } |
||
44 | |||
45 | public function setDoes(string $value): void |
||
48 | } |
||
49 | } |
||
50 |