| Total Complexity | 5 |
| Total Lines | 59 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class CollectionShow1 extends Model |
||
| 14 | { |
||
| 15 | /** @var int */ |
||
| 16 | protected $id; |
||
| 17 | |||
| 18 | /** @var string */ |
||
| 19 | protected $text; |
||
| 20 | |||
| 21 | /** @var string */ |
||
| 22 | protected $image; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * parse |
||
| 26 | * |
||
| 27 | * @param array $data |
||
| 28 | */ |
||
| 29 | public function parse(array $data) |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * toArray |
||
| 38 | * |
||
| 39 | * @return array |
||
| 40 | */ |
||
| 41 | public function toArray(): array |
||
| 42 | { |
||
| 43 | return [ |
||
| 44 | 'id' => $this->id, |
||
| 45 | 'text' => $this->text, |
||
| 46 | 'image' => $this->image, |
||
| 47 | ]; |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return int |
||
| 52 | */ |
||
| 53 | public function getId(): int |
||
| 54 | { |
||
| 55 | return $this->id; |
||
| 56 | } |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @return string |
||
| 60 | */ |
||
| 61 | public function getText(): string |
||
| 62 | { |
||
| 63 | return $this->text; |
||
| 64 | } |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @return string |
||
| 68 | */ |
||
| 69 | public function getImage(): string |
||
| 72 | } |
||
| 73 | |||
| 74 | } |