| 1 | <?php |
||
| 11 | class PohodaResponseXML |
||
| 12 | { |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var \SimpleXMLElement |
||
| 16 | */ |
||
| 17 | protected $xml; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var array |
||
| 21 | */ |
||
| 22 | protected $ns = array(); |
||
| 23 | |||
| 24 | /** |
||
| 25 | * State when file was imported successfully |
||
| 26 | */ |
||
| 27 | const STATE_OK = 'ok'; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Create a new PohodaResponseParser Instance |
||
| 31 | * @param string $filename path to file |
||
| 32 | * @throws FileNotFoundException |
||
| 33 | */ |
||
| 34 | 2 | public function __construct($filename) |
|
| 42 | |||
| 43 | /** |
||
| 44 | * Checks if import was successful |
||
| 45 | * @return bool |
||
| 46 | */ |
||
| 47 | 1 | public function isOk() |
|
| 51 | |||
| 52 | /** |
||
| 53 | * Return state of whole file |
||
| 54 | * @return string |
||
| 55 | */ |
||
| 56 | 1 | public function getState() |
|
| 60 | } |
||
| 61 |