| Total Complexity | 5 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Coverage | 90.91% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class SMSDRCheckCallbackRequest extends SMSClientRequest |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var string |
||
| 12 | */ |
||
| 13 | private $id; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * CheckSMSDRCallbackRequest constructor. |
||
| 17 | * @param $id |
||
| 18 | * @throws \Exception |
||
| 19 | */ |
||
| 20 | 1 | public function __construct($id) |
|
| 21 | { |
||
| 22 | 1 | if (! $id) { |
|
| 23 | throw new Exception('Missing subscription id'); |
||
| 24 | } |
||
| 25 | |||
| 26 | 1 | $this->id = $id; |
|
| 27 | 1 | } |
|
| 28 | |||
| 29 | /** |
||
| 30 | * Http request method. |
||
| 31 | * |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | 1 | public function method() |
|
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * The uri for the current request. |
||
| 41 | * |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | 1 | public function uri() |
|
| 45 | { |
||
| 46 | // '.urlencode($this->sender).'/ |
||
| 47 | 1 | return static::BASE_URI.'/smsmessaging/v1/outbound/subscriptions/'.$this->id; |
|
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Http request options. |
||
| 52 | * |
||
| 53 | * @return array |
||
| 54 | */ |
||
| 55 | 1 | public function options() |
|
| 59 | ]; |
||
| 60 | } |
||
| 62 |