1 | <?php |
||
8 | class LinodeRebooter extends ApiRebooter { |
||
9 | |||
10 | protected $token; |
||
11 | protected $linodeId; |
||
12 | protected $host; |
||
13 | protected $client; |
||
14 | |||
15 | /** |
||
16 | * @param string $token API Token from Linode.com |
||
17 | * @param [type] $linodeId The ID of the linode you want to control |
||
|
|||
18 | * @param string $host The api host |
||
19 | * @param Client $client The guzzle client to use |
||
20 | */ |
||
21 | 3 | public function __construct($token, $linodeId, $host = "api.linode.com", Client $client = null){ |
|
32 | |||
33 | /** |
||
34 | * Executes a Boot command |
||
35 | * @return asdfasdfkdkdkdkd |
||
36 | */ |
||
37 | public function boot(){ |
||
40 | |||
41 | /** |
||
42 | * Executes a Reboot command |
||
43 | * @return asdfasdfkdkdkdkd |
||
44 | */ |
||
45 | public function reboot(){ |
||
48 | |||
49 | /** |
||
50 | * Executes a Shutdown command |
||
51 | * @return asdfasdfkdkdkdkd |
||
52 | */ |
||
53 | public function shutdown(){ |
||
56 | |||
57 | /** |
||
58 | * Builds the request URL for the API call |
||
59 | * @param string $action The Linode API action |
||
60 | * @return string |
||
61 | */ |
||
62 | protected function buildRequestUrl($action){ |
||
65 | |||
66 | /** |
||
67 | * Executes a command on the API |
||
68 | * @return asdfasdfkdkdkdkd |
||
69 | */ |
||
70 | protected function exec($action){ |
||
79 | } |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.