| Conditions | 3 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function SendNotification(SendNotificationResponseType $message) |
||
| 22 | { |
||
| 23 | $message = ExchangeWebServices::drillDownResponseLevels($message); |
||
| 24 | |||
| 25 | $handler = $this->handler; |
||
| 26 | $response = $handler($message); |
||
| 27 | |||
| 28 | if ($response !== SubscriptionStatusType::OK && $response !== SubscriptionStatusType::UNSUBSCRIBE) { |
||
| 29 | throw new Exception('Unexpected Subscription Status Response'); |
||
| 30 | } |
||
| 31 | |||
| 32 | $result = new SendNotificationResultType(); |
||
| 33 | $result->setSubscriptionStatus($response); |
||
| 34 | |||
| 35 | return $result->toXmlObject(); |
||
| 36 | } |
||
| 37 | } |