Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 8 |
|
0.00% |
0 / 4 |
CRAP | |
0.00% |
0 / 1 |
| Nexmo | |
0.00% |
0 / 8 |
|
0.00% |
0 / 4 |
20 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 5 |
|
0.00% |
0 / 1 |
2 | |||
| getClient | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getFrom | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setFrom | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace BuyerKiosk\Core; |
| 4 | |
| 5 | class Nexmo { |
| 6 | private $api_key; |
| 7 | private $api_secret; |
| 8 | private $end_point; |
| 9 | private $from; |
| 10 | |
| 11 | public $client; |
| 12 | |
| 13 | public function __construct() { |
| 14 | $this->api_key = "67e71b29"; |
| 15 | $this->api_secret = "47f48c40b1586e71"; |
| 16 | $this->end_point = "https://rest.nexmo.com/sms/json"; |
| 17 | $this->from = "NEXMO"; |
| 18 | $this->client = new Nexmo\Client(new Nexmo\Client\Credentials\Basic($this->api_key, $this->api_secret)); |
| 19 | } |
| 20 | public function getClient() |
| 21 | { |
| 22 | return $this->client; |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * @return string |
| 27 | */ |
| 28 | public function getFrom() |
| 29 | { |
| 30 | return $this->from; |
| 31 | } |
| 32 | |
| 33 | /** |
| 34 | * @param string $from |
| 35 | */ |
| 36 | public function setFrom($from) |
| 37 | { |
| 38 | $this->from = $from; |
| 39 | } |
| 40 | |
| 41 | |
| 42 | } |