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 Response |
||
45 | * @throws \Exception |
||
46 | */ |
||
47 | public function getBody() |
||
59 | |||
60 | /** |
||
61 | * Checks whether the communication is OK |
||
62 | * |
||
63 | * @return boolean |
||
64 | */ |
||
65 | public function isOk() |
||
69 | |||
70 | /** |
||
71 | * Count how many results are being returned |
||
72 | * |
||
73 | * @return int |
||
74 | */ |
||
75 | public function getCount() |
||
79 | } |
||
80 |