1 | <?php |
||
15 | class XMLRepository implements Repository |
||
16 | { |
||
17 | use Repository\Capability\CodepointSearchByIteration; |
||
18 | use Repository\Capability\PropertySearchByIteration; |
||
19 | |||
20 | /** |
||
21 | * @var CodepointElementReader |
||
22 | */ |
||
23 | private $elementReader; |
||
24 | |||
25 | /** |
||
26 | * @var CodepointAssignedParser |
||
27 | */ |
||
28 | private $elementParser; |
||
29 | |||
30 | /** |
||
31 | * @var CodepointCountParser |
||
32 | */ |
||
33 | private $countParser; |
||
34 | |||
35 | /** |
||
36 | * @param CodepointElementReader $characterReader |
||
37 | * @param CodepointAssignedParser $characterParser |
||
38 | * @param CodepointCountParser $codepointParser |
||
39 | */ |
||
40 | public function __construct( |
||
49 | |||
50 | /** |
||
51 | * {@inheritDoc} |
||
52 | */ |
||
53 | public function getAll() |
||
59 | |||
60 | /** |
||
61 | * @return \Generator |
||
62 | */ |
||
63 | private function readAll() |
||
74 | |||
75 | /** |
||
76 | * @param \DOMElement $element |
||
77 | * @return CodepointAssigned[] |
||
78 | */ |
||
79 | private function parseElementForCharacters(\DOMElement $element) |
||
83 | |||
84 | /** |
||
85 | * {@inheritDoc} |
||
86 | */ |
||
87 | public function count() |
||
97 | |||
98 | /** |
||
99 | * @param \DOMElement $element |
||
100 | * @return int |
||
101 | */ |
||
102 | private function parseElementForCharacterCount(\DOMElement $element) |
||
106 | } |