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 | */ |
||
34 | public function __construct( |
||
43 | |||
44 | /** |
||
45 | * @param \SimpleXMLElement $xml |
||
46 | */ |
||
47 | public function parse(\SimpleXMLElement $xml) |
||
51 | |||
52 | /** |
||
53 | * @return ParserInterface[] |
||
54 | */ |
||
55 | public function getFieldParsers() |
||
68 | |||
69 | /** |
||
70 | * @return float |
||
71 | */ |
||
72 | public function getWidth() |
||
76 | |||
77 | /** |
||
78 | * @return float |
||
79 | */ |
||
80 | public function getHeight() |
||
84 | |||
85 | /** |
||
86 | * @return float |
||
87 | */ |
||
88 | public function getScale() |
||
92 | |||
93 | /** |
||
94 | * @return ParserDocument |
||
95 | */ |
||
96 | public static function factory() |
||
104 | } |
||
105 |