| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | 2 | public function send(SnsMessage $message, $destination) |
|
| 27 | { |
||
| 28 | $parameters = [ |
||
| 29 | 2 | 'Message' => $message->getBody(), |
|
| 30 | 2 | 'PhoneNumber' => $destination, |
|
| 31 | 'MessageAttributes' => [ |
||
| 32 | 'AWS.SNS.SMS.SMSType' => [ |
||
| 33 | 2 | 'DataType' => 'String', |
|
| 34 | 2 | 'StringValue' => $message->getDeliveryType(), |
|
| 35 | ], |
||
| 36 | ], |
||
| 37 | ]; |
||
| 38 | |||
| 39 | 2 | return $this->snsService->publish($parameters); |
|
| 40 | } |
||
| 42 |