1 | <?php |
||
9 | abstract class Ssh implements ServerController |
||
10 | { |
||
11 | /** |
||
12 | * @var Session |
||
13 | */ |
||
14 | protected $session; |
||
15 | |||
16 | /** |
||
17 | * Gets the SSH session executor |
||
18 | * @return \Ssh\Exec |
||
19 | */ |
||
20 | 3 | public function getExec() { |
|
23 | |||
24 | /** |
||
25 | * Throws an Exception because you cannot boot a powered down machine from ssh |
||
26 | * @return void |
||
27 | */ |
||
28 | 3 | public function boot() { |
|
31 | |||
32 | /** |
||
33 | * Executes a Reboot command |
||
34 | * @return void |
||
35 | */ |
||
36 | 3 | public function reboot() { |
|
40 | |||
41 | /** |
||
42 | * Executes a Shutdown command |
||
43 | * @return void |
||
44 | */ |
||
45 | 3 | public function shutdown() { |
|
49 | |||
50 | /** |
||
51 | * Gets the value of session. |
||
52 | * |
||
53 | * @return Session |
||
54 | */ |
||
55 | 3 | public function getSession() |
|
59 | |||
60 | /** |
||
61 | * Sets the value of session. |
||
62 | * |
||
63 | * @param Session $session the session |
||
64 | * @return self |
||
65 | */ |
||
66 | 6 | public function setSession(Session $session) |
|
71 | } |