| Total Complexity | 6 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class AuthXmlResponse extends SimpleXMLElement |
||
| 9 | { |
||
| 10 | private function getXpathFaultString() : string |
||
| 11 | { |
||
| 12 | return '//ns2:AuthResponse/ns2:Fault/ns2:Message/text()'; |
||
| 13 | } |
||
| 14 | |||
| 15 | private function getXpathTokenString() : string |
||
| 18 | } |
||
| 19 | |||
| 20 | private function getXpathExpireTimeString() : string |
||
| 21 | { |
||
| 22 | return '//ns2:AuthResponse/ns2:Result/ns2:ExpireTime/text()'; |
||
| 23 | } |
||
| 24 | |||
| 25 | public function isError() : bool |
||
| 26 | { |
||
| 27 | return !empty($this->xpath($this->getXpathFaultString())); |
||
| 28 | } |
||
| 29 | |||
| 30 | public function getToken() : string |
||
| 33 | } |
||
| 34 | |||
| 35 | public function getTime() : string |
||
| 38 | } |
||
| 39 | } |
||
| 40 |