Total Complexity | 3 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 37.5% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | abstract class Model |
||
8 | { |
||
9 | /** |
||
10 | * Model constructor. |
||
11 | * |
||
12 | * @param array $data |
||
13 | * @throws \NStack\Exceptions\FailedToParseException |
||
14 | * @author Casper Rasmussen <[email protected]> |
||
15 | */ |
||
16 | 26 | public function __construct(array $data) |
|
28 | } |
||
29 | 26 | } |
|
30 | |||
31 | public abstract function parse(array $data); |
||
32 | |||
33 | public abstract function toArray(): array; |
||
34 | } |