| Total Complexity | 7 |
| Total Lines | 86 |
| Duplicated Lines | 0 % |
| Coverage | 30.43% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class SeenUpdate extends Model |
||
| 15 | { |
||
| 16 | /** @var int */ |
||
| 17 | protected $id; |
||
| 18 | |||
| 19 | /** @var String */ |
||
| 20 | protected $guid; |
||
| 21 | |||
| 22 | /** @var string */ |
||
| 23 | protected $answer; |
||
| 24 | |||
| 25 | /** @var string */ |
||
| 26 | protected $type; |
||
| 27 | |||
| 28 | /** @var DateTime */ |
||
| 29 | protected $created; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * parse |
||
| 33 | * |
||
| 34 | * @param array $data |
||
| 35 | * @throws Exception |
||
| 36 | */ |
||
| 37 | 1 | public function parse(array $data) |
|
| 44 | 1 | } |
|
| 45 | |||
| 46 | /** |
||
| 47 | * toArray |
||
| 48 | * |
||
| 49 | * @return array |
||
| 50 | */ |
||
| 51 | public function toArray(): array |
||
| 52 | { |
||
| 53 | return [ |
||
| 54 | 'id' => $this->id, |
||
| 55 | 'guid' => $this->guid, |
||
| 56 | 'answer' => $this->answer, |
||
| 57 | 'type' => $this->type, |
||
| 58 | 'created' => $this->created, |
||
| 59 | ]; |
||
| 60 | } |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @return int |
||
| 64 | */ |
||
| 65 | public function getId(): int |
||
| 66 | { |
||
| 67 | return $this->id; |
||
| 68 | } |
||
| 69 | |||
| 70 | /** |
||
| 71 | * @return String |
||
| 72 | */ |
||
| 73 | public function getGuid(): String |
||
| 74 | { |
||
| 75 | return $this->guid; |
||
| 76 | } |
||
| 77 | |||
| 78 | /** |
||
| 79 | * @return string |
||
| 80 | */ |
||
| 81 | public function getAnswer(): string |
||
| 82 | { |
||
| 83 | return $this->answer; |
||
| 84 | } |
||
| 85 | |||
| 86 | /** |
||
| 87 | * @return string |
||
| 88 | */ |
||
| 89 | public function getType(): string |
||
| 90 | { |
||
| 91 | return $this->type; |
||
| 92 | } |
||
| 93 | |||
| 94 | /** |
||
| 95 | * @return DateTime |
||
| 96 | */ |
||
| 97 | public function getCreated(): DateTime |
||
| 100 | } |
||
| 101 | } |