Total Complexity | 6 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 95% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | final class StructuredReference implements Operand |
||
8 | { |
||
9 | public const NAME = 'Structured Reference'; |
||
10 | |||
11 | private const OPEN_BRACE = '['; |
||
12 | private const CLOSE_BRACE = ']'; |
||
13 | |||
14 | private string $value; |
||
15 | |||
16 | 9 | public function __construct(string $structuredReference) |
|
17 | { |
||
18 | 9 | $this->value = $structuredReference; |
|
19 | } |
||
20 | |||
21 | 9 | public static function fromParser(string $formula, int $index, array $matches): self |
|
43 | } |
||
44 | |||
45 | 9 | public function value(): string |
|
50 |