| 1 | <?php |
||
| 8 | class Wrapper |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The config instance |
||
| 12 | * |
||
| 13 | * @var Repository |
||
| 14 | */ |
||
| 15 | public $config; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * The Plesk api client instance |
||
| 19 | * |
||
| 20 | * @var \PleskX\Api\Client |
||
| 21 | */ |
||
| 22 | public $client; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Client constructor |
||
| 26 | * |
||
| 27 | * @param Repository $config |
||
| 28 | */ |
||
| 29 | public function __construct(Repository $config) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Handle dynamic calls to the client |
||
| 41 | * |
||
| 42 | * @param $name |
||
| 43 | * @param $arguments |
||
| 44 | * |
||
| 45 | * @return mixed |
||
| 46 | */ |
||
| 47 | public function __call($name, $arguments) |
||
| 51 | } |