Total Complexity | 4 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | final class Serialize implements ConfigurationInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var bool |
||
17 | */ |
||
18 | private $deepPopulate; |
||
19 | |||
20 | public function __construct(array $data) |
||
21 | { |
||
22 | $this->deepPopulate = (bool) ($data['deepPopulate'] ?? $data['value']); |
||
23 | } |
||
24 | |||
25 | public function context(): array |
||
29 | ]; |
||
30 | } |
||
31 | |||
32 | public function getAliasName(): string |
||
33 | { |
||
34 | return 'serialize'; |
||
35 | } |
||
36 | |||
37 | public function allowArray(): bool |
||
40 | } |
||
41 | } |
||
42 |