1 | <?php |
||
19 | class Info |
||
20 | { |
||
21 | /** |
||
22 | * The XML. |
||
23 | * |
||
24 | * @var \SimpleXMLElement |
||
25 | */ |
||
26 | private $xml; |
||
27 | |||
28 | /** |
||
29 | * Constructor. |
||
30 | * |
||
31 | * @param string $rawXml |
||
32 | * The raw XML as received from the translation service. |
||
33 | */ |
||
34 | 21 | public function __construct($rawXml) |
|
38 | |||
39 | /** |
||
40 | * Get the ID. |
||
41 | * |
||
42 | * @return string |
||
43 | * The DeliveryId property. |
||
44 | */ |
||
45 | 6 | public function getId() |
|
49 | |||
50 | /** |
||
51 | * Get the Date. |
||
52 | * |
||
53 | * @return DateTime |
||
54 | * The DeliveryDate property. |
||
55 | */ |
||
56 | 3 | public function getDate() |
|
60 | |||
61 | /** |
||
62 | * Get the status. |
||
63 | * |
||
64 | * @return string |
||
65 | * The DeliveryStatus property. |
||
66 | */ |
||
67 | 3 | public function getStatus() |
|
71 | |||
72 | /** |
||
73 | * Get the reference. |
||
74 | * |
||
75 | * @return string |
||
76 | * The Client reference related to this translation. |
||
77 | */ |
||
78 | 3 | public function getReference() |
|
82 | |||
83 | /** |
||
84 | * Get the person who issued the translation. |
||
85 | * |
||
86 | * @return string |
||
87 | * The IssuedBy property. |
||
88 | */ |
||
89 | 3 | public function getIssuedBy() |
|
93 | |||
94 | /** |
||
95 | * Get an array with info about the files within the translation delivery. |
||
96 | * |
||
97 | * @return InfoFiles |
||
98 | * Array with info for each file. |
||
99 | */ |
||
100 | 3 | public function getFiles() |
|
104 | } |
||
105 |