1 | <?php |
||
25 | abstract class BaseResponse |
||
26 | { |
||
27 | const SUCCESS = 'SUCCESS'; |
||
28 | const FAILED = 'FAILED'; |
||
29 | |||
30 | /** |
||
31 | * @var \SimpleXMLElement |
||
32 | */ |
||
33 | protected $rawXml; |
||
34 | |||
35 | /** |
||
36 | * BaseResponse constructor. |
||
37 | * |
||
38 | * @param \SimpleXMLElement $xml |
||
39 | */ |
||
40 | public function __construct(\SimpleXMLElement $xml) |
||
44 | |||
45 | /** |
||
46 | * @return \SimpleXMLElement |
||
47 | */ |
||
48 | public function getRawXml() |
||
52 | |||
53 | /** |
||
54 | * @return string |
||
55 | */ |
||
56 | public function getReturnCode() |
||
60 | |||
61 | /** |
||
62 | * @return string |
||
63 | */ |
||
64 | public function getMessageKey() |
||
68 | |||
69 | /** |
||
70 | * @return string |
||
71 | */ |
||
72 | public function getMessage() |
||
76 | |||
77 | public function success() |
||
81 | |||
82 | public function failed() |
||
86 | } |
||
87 |