| 1 | <?php |
||
| 8 | abstract class Vtu implements VtuServiceInterface |
||
| 9 | { |
||
| 10 | protected $text; |
||
| 11 | protected $username; |
||
| 12 | protected $password; |
||
| 13 | protected $recipients = []; |
||
| 14 | private static $httpClient; |
||
| 15 | protected $sender; |
||
| 16 | protected $response; |
||
| 17 | protected $client; |
||
| 18 | protected $request; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var \Exception |
||
| 22 | */ |
||
| 23 | public $httpError; |
||
| 24 | |||
| 25 | /**We want HTTP CLient instantiated |
||
| 26 | * only once in entire app lifecycle |
||
| 27 | * @return Client |
||
| 28 | */ |
||
| 29 | 5 | public static function getInstance() |
|
| 37 | |||
| 38 | |||
| 39 | /**We want HTTP CLient instantiated |
||
| 40 | * only once in entire app lifecycle |
||
| 41 | * @return string $response |
||
| 42 | */ |
||
| 43 | public function getResponse() : string |
||
| 47 | |||
| 48 | public function getException() : \Exception |
||
| 52 | |||
| 53 | 2 | public function getUsername() |
|
| 57 | |||
| 58 | } |
||
| 59 |