| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | abstract class AbstractEntity implements Arrayable, JsonSerializable |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @inheritdoc |
||
| 18 | */ |
||
| 19 | public function toArray(): array |
||
| 20 | { |
||
| 21 | return []; |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @inheritdoc |
||
| 26 | */ |
||
| 27 | public function jsonSerialize(): array |
||
| 28 | { |
||
| 29 | return $this->toArray(); |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * persist |
||
| 34 | * |
||
| 35 | * @return bool |
||
| 36 | */ |
||
| 37 | private function persist() |
||
| 40 | } |
||
| 41 | |||
| 42 | } |
||
| 43 |
This check looks for private methods that have been defined, but are not used inside the class.