| Total Complexity | 5 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class Animal extends ActiveRecord |
||
| 15 | { |
||
| 16 | private string $does; |
||
| 17 | |||
| 18 | protected int $id; |
||
| 19 | protected string $type; |
||
| 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() |
||
| 34 | { |
||
| 35 | return $this->does; |
||
| 36 | } |
||
| 37 | |||
| 38 | public function instantiate($row): ActiveRecordInterface |
||
| 43 | } |
||
| 44 | |||
| 45 | public function setDoes(string $value): void |
||
| 48 | } |
||
| 49 | } |
||
| 50 |