1 | <?php |
||
24 | final class ReferenceMap implements ReferenceMapInterface |
||
25 | { |
||
26 | /** |
||
27 | * @var TextNormalizer |
||
28 | * |
||
29 | * @psalm-readonly |
||
30 | */ |
||
31 | private $normalizer; |
||
32 | |||
33 | /** |
||
34 | * @var array<string, ReferenceInterface> |
||
35 | * |
||
36 | * @psalm-readonly-allow-private-mutation |
||
37 | */ |
||
38 | private $references = []; |
||
39 | |||
40 | 2835 | public function __construct() |
|
41 | { |
||
42 | 2835 | $this->normalizer = new TextNormalizer(); |
|
43 | 2835 | } |
|
44 | |||
45 | 288 | public function add(ReferenceInterface $reference): void |
|
52 | |||
53 | 246 | public function contains(string $label): bool |
|
59 | |||
60 | 339 | public function get(string $label): ?ReferenceInterface |
|
70 | |||
71 | /** |
||
72 | * @return \Traversable<string, ReferenceInterface> |
||
|
|||
73 | */ |
||
74 | 3 | public function getIterator(): \Traversable |
|
80 | |||
81 | 6 | public function count(): int |
|
85 | } |
||
86 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.