1 | <?php |
||
27 | class Response implements ResponseInterface |
||
28 | { |
||
29 | protected $response; |
||
30 | |||
31 | /** |
||
32 | * Constructor |
||
33 | * |
||
34 | * @param object $response Actual response from SOAP |
||
35 | */ |
||
36 | public function __construct($response) |
||
40 | |||
41 | /** |
||
42 | * Gets the body from the response |
||
43 | * |
||
44 | * @return mixed Soap result or throws Exception |
||
45 | */ |
||
46 | public function getBody() |
||
63 | |||
64 | /** |
||
65 | * Checks whether the communication is OK |
||
66 | * |
||
67 | * @return boolean |
||
68 | */ |
||
69 | public function isOk() |
||
73 | |||
74 | /** |
||
75 | * Count how many results are being returned |
||
76 | * |
||
77 | * @return int |
||
78 | */ |
||
79 | public function getCount() |
||
83 | } |
||
84 |