Total Complexity | 13 |
Total Lines | 59 |
Duplicated Lines | 0 % |
Coverage | 96% |
Changes | 0 |
1 | <?php |
||
14 | final class Set implements Property |
||
15 | { |
||
16 | private const PATTERN = '~^set<(?<type>.+)>\+?$~'; |
||
17 | |||
18 | private $type; |
||
19 | private $requiresValue = false; |
||
20 | |||
21 | 15 | private function __construct(string $type) |
|
22 | { |
||
23 | 15 | $this->type = $type; |
|
24 | 15 | } |
|
25 | |||
26 | 18 | public static function build(Immutable\Str $schema, Properties $properties): Property |
|
41 | } |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | 10 | public function process($value) |
|
75 |