Total Complexity | 3 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 3 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
15 | class PropertyMetadata implements \Serializable |
||
16 | { |
||
17 | use SerializationHelper; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | public $class; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | 3 | public $name; |
|
28 | |||
29 | 3 | public function __construct(string $class, string $name) |
|
33 | } |
||
34 | |||
35 | protected function serializeToArray(): array |
||
40 | 1 | ]; |
|
41 | } |
||
42 | 1 | ||
43 | 1 | protected function unserializeFromArray(array $data): void |
|
48 |