Total Complexity | 4 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | final class Identifier implements Scalar |
||
12 | { |
||
13 | /** @var string */ |
||
14 | private $identifier; |
||
15 | |||
16 | public function __construct(string $identifier) |
||
17 | { |
||
18 | $this->identifier = $identifier; |
||
19 | } |
||
20 | |||
21 | public function getValue() : string |
||
22 | { |
||
23 | return $this->identifier; |
||
24 | } |
||
25 | |||
26 | public function dispatch(Visitor $visitor) : void |
||
27 | { |
||
28 | $visitor->visitIdentifier($this); |
||
29 | } |
||
30 | |||
31 | public function toConstantFetch() : ConstantFetch |
||
34 | } |
||
35 | } |
||
36 |