| 1 | <?php |
||
| 9 | class SmsTrafficClient extends AbstractSoapClient |
||
| 10 | {
|
||
| 11 | /** |
||
| 12 | * @var int |
||
| 13 | */ |
||
| 14 | protected static $rusOption = '1'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Название отправителя |
||
| 18 | * |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | protected static $originator = 'Cuberussia'; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param string $phone |
||
| 25 | * @param string $message |
||
| 26 | */ |
||
| 27 | public function sendMessage($phone, $message) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | public function getWsdl() |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @param $data |
||
| 47 | * |
||
| 48 | * @return string |
||
| 49 | */ |
||
| 50 | protected function encode($data) |
||
| 54 | } |
If you implement
__calland you know which methods are available, you can improve IDE auto-completion and static analysis by adding a @method annotation to the class.This is often the case, when
__callis implemented by a parent class and only the child class knows which methods exist: