1 | <?php |
||
8 | class ParserDocument |
||
9 | { |
||
10 | /** |
||
11 | * @var FieldSorter |
||
12 | */ |
||
13 | private $fieldSorter; |
||
14 | |||
15 | /** |
||
16 | * @var FieldParserFactory |
||
17 | */ |
||
18 | private $fieldParserFactory; |
||
19 | |||
20 | /** |
||
21 | * @var FieldParserRegistry |
||
22 | */ |
||
23 | private $fieldParserRegistry; |
||
24 | |||
25 | /** |
||
26 | * @var \SimpleXMLElement |
||
27 | */ |
||
28 | private $xml; |
||
29 | |||
30 | /** |
||
31 | * @param FieldSorter $fieldSorter |
||
32 | * @param FieldParserFactory $fieldParserFactory |
||
33 | * @param FieldParserRegistry $fieldParserRegistry |
||
34 | */ |
||
35 | public function __construct( |
||
44 | |||
45 | /** |
||
46 | * @param \SimpleXMLElement $xml |
||
47 | */ |
||
48 | public function parse(\SimpleXMLElement $xml) |
||
52 | |||
53 | /** |
||
54 | * @return ParserInterface[] |
||
55 | */ |
||
56 | public function getFieldParsers() |
||
69 | |||
70 | /** |
||
71 | * @return float |
||
72 | */ |
||
73 | public function getWidth() |
||
77 | |||
78 | /** |
||
79 | * @return float |
||
80 | */ |
||
81 | public function getHeight() |
||
85 | |||
86 | /** |
||
87 | * @return float |
||
88 | */ |
||
89 | public function getScale() |
||
93 | |||
94 | /** |
||
95 | * @return ParserDocument |
||
96 | */ |
||
97 | public static function factory() |
||
105 | } |
||
106 |