1 | <?php |
||
19 | class InfoFile |
||
20 | { |
||
21 | /** |
||
22 | * The \SimpleXml wrapper around the XML data. |
||
23 | * |
||
24 | * @var \SimpleXmlElement |
||
25 | */ |
||
26 | private $xml; |
||
27 | |||
28 | |||
29 | /** |
||
30 | * Construct a new object by passing the SimpleXmlElement. |
||
31 | * |
||
32 | * @param \SimpleXmlElement |
||
33 | */ |
||
34 | 27 | public function __construct(\SimpleXMLElement $xml) |
|
38 | |||
39 | /** |
||
40 | * Get the fileName. |
||
41 | * |
||
42 | * @return string |
||
43 | */ |
||
44 | 6 | public function getName() |
|
48 | |||
49 | /** |
||
50 | * Get the FileSize. |
||
51 | * |
||
52 | * @return int |
||
53 | */ |
||
54 | 3 | public function getSize() |
|
58 | |||
59 | /** |
||
60 | * Get the filePath within the Response Zip package. |
||
61 | * |
||
62 | * @return string |
||
63 | */ |
||
64 | 3 | public function getPath() |
|
68 | |||
69 | /** |
||
70 | * Get the source language. |
||
71 | * |
||
72 | * @return string |
||
73 | */ |
||
74 | 3 | public function getSourceLanguage() |
|
78 | |||
79 | /** |
||
80 | * Get the target language. |
||
81 | * |
||
82 | * @return string |
||
83 | */ |
||
84 | 3 | public function getTargetLanguage() |
|
88 | } |
||
89 |