Total Complexity | 4 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | final class FieldTypeGeneratorConfig implements ConfigInterface |
||
20 | { |
||
21 | /** @var array */ |
||
22 | private $config; |
||
23 | |||
24 | private function __construct(array $config) |
||
25 | { |
||
26 | $this->config = $config; |
||
27 | } |
||
28 | |||
29 | public function toArray(): array |
||
30 | { |
||
31 | return $this->config; |
||
32 | } |
||
33 | |||
34 | public function __toString(): string |
||
35 | { |
||
36 | return ArrayConverter::recursive($this->config); |
||
37 | } |
||
38 | |||
39 | public static function fromArray(array $config): self |
||
42 | } |
||
43 | } |
||
44 |