Total Complexity | 12 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | abstract class AbstractEntity implements JsonSerializable |
||
9 | { |
||
10 | public function __construct(array $data = null) |
||
11 | { |
||
12 | if (!is_null($data)) { |
||
13 | $this->hydrate($data); |
||
14 | } |
||
15 | } |
||
16 | |||
17 | public function toArray(): array |
||
31 | } |
||
32 | |||
33 | public function hydrate(array $options): void |
||
43 | } |
||
44 | } |
||
45 | } |
||
46 | |||
47 | public function jsonSerialize(): array |
||
50 | } |
||
51 | |||
52 | private function getSetterMethod($propertyName): string |
||
57 |