| Total Complexity | 5 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | final class Set implements Type |
||
| 16 | { |
||
| 17 | private const PATTERN = '~^set<(?<type>.+)>$~'; |
||
| 18 | private $type; |
||
| 19 | |||
| 20 | 4 | public function __construct(string $type) |
|
| 23 | 4 | } |
|
| 24 | |||
| 25 | /** |
||
| 26 | * {@inheritdoc} |
||
| 27 | */ |
||
| 28 | 2 | public function accepts($value): bool |
|
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * {@inheritdoc} |
||
| 39 | */ |
||
| 40 | 6 | public static function fromString(Str $value): Type |
|
| 51 |