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