| 1 | <?php |
||
| 25 | class Service |
||
| 26 | { |
||
| 27 | protected $soap; |
||
| 28 | protected $response; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Constructor |
||
| 32 | * |
||
| 33 | * @param object $soap Soap Client |
||
| 34 | */ |
||
| 35 | 1 | public function __construct($soap) |
|
| 39 | |||
| 40 | /** |
||
| 41 | * Add new registration to EDBBrugs |
||
| 42 | * |
||
| 43 | * @param object $request The XML request to use when adding a new registration |
||
| 44 | * |
||
| 45 | * @return mixed (number of successful registrations) or throws Exception |
||
| 46 | */ |
||
| 47 | 1 | public function addNewRegistration(Request $request) |
|
| 63 | |||
| 64 | /** |
||
| 65 | * Checks whether the communication is OK |
||
| 66 | * |
||
| 67 | * @return boolean |
||
| 68 | */ |
||
| 69 | 1 | protected function isOk() |
|
| 75 | } |
||
| 76 |