@@ -22,7 +22,7 @@ |
||
22 | 22 | /** |
23 | 23 | * Constructor. |
24 | 24 | * |
25 | - * @param object $configuration Configuration object |
|
25 | + * @param Configuration $configuration Configuration object |
|
26 | 26 | * @return void |
27 | 27 | */ |
28 | 28 | public function __construct(Configuration $configuration) |
@@ -56,7 +56,7 @@ |
||
56 | 56 | /** |
57 | 57 | * Constructor. |
58 | 58 | * |
59 | - * @param object $configuration Configuration object |
|
59 | + * @param Configuration $configuration Configuration object |
|
60 | 60 | * @return void |
61 | 61 | */ |
62 | 62 | public function __construct(Configuration $configuration) |
@@ -21,7 +21,7 @@ |
||
21 | 21 | /** |
22 | 22 | * Constructor. |
23 | 23 | * |
24 | - * @param object $configuration Configuration object |
|
24 | + * @param Configuration $configuration Configuration object |
|
25 | 25 | * @return void |
26 | 26 | */ |
27 | 27 | public function __construct(Configuration $configuration) |
@@ -29,7 +29,7 @@ |
||
29 | 29 | /** |
30 | 30 | * Constructor. |
31 | 31 | * |
32 | - * @param object $configuration Configuration object |
|
32 | + * @param Configuration $configuration Configuration object |
|
33 | 33 | * @return void |
34 | 34 | */ |
35 | 35 | public function __construct(Configuration $configuration) |
@@ -43,7 +43,7 @@ |
||
43 | 43 | /** |
44 | 44 | * Constructor. |
45 | 45 | * |
46 | - * @param object $configuration Configuration object |
|
46 | + * @param Configuration $configuration Configuration object |
|
47 | 47 | * @return void |
48 | 48 | */ |
49 | 49 | public function __construct(Configuration $configuration) |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | * Set command line prefix. |
50 | 50 | * |
51 | 51 | * @param string $prefix command line prefix |
52 | - * @return object class object |
|
52 | + * @return Builder class object |
|
53 | 53 | */ |
54 | 54 | final public function setPrefix($prefix) |
55 | 55 | { |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | * Set command line options |
62 | 62 | * |
63 | 63 | * @param array $opts command line options |
64 | - * @return object class object |
|
64 | + * @return Builder class object |
|
65 | 65 | */ |
66 | 66 | final public function setOptions(array $opts) |
67 | 67 | { |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | * Set command line arguments |
86 | 86 | * |
87 | 87 | * @param array $args command line arguments |
88 | - * @return object class object |
|
88 | + * @return Builder class object |
|
89 | 89 | */ |
90 | 90 | final public function setArguments(array $args) |
91 | 91 | { |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | * Sets username. |
93 | 93 | * |
94 | 94 | * @param string $username username |
95 | - * @return object \LibSSH2\Configuration object |
|
95 | + * @return Configuration \LibSSH2\Configuration object |
|
96 | 96 | */ |
97 | 97 | final public function set_username($username) |
98 | 98 | { |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | * Sets user password. |
105 | 105 | * |
106 | 106 | * @param string $password password |
107 | - * @return object \LibSSH2\Configuration object |
|
107 | + * @return Configuration \LibSSH2\Configuration object |
|
108 | 108 | */ |
109 | 109 | final public function set_password($password) |
110 | 110 | { |
@@ -115,8 +115,8 @@ discard block |
||
115 | 115 | /** |
116 | 116 | * Sets RSA public key. |
117 | 117 | * |
118 | - * @param string $publickey RSA public key |
|
119 | - * @return object \LibSSH2\Configuration object |
|
118 | + * @param string $public_key RSA public key |
|
119 | + * @return Configuration \LibSSH2\Configuration object |
|
120 | 120 | */ |
121 | 121 | final public function set_publickey($public_key) |
122 | 122 | { |
@@ -127,8 +127,8 @@ discard block |
||
127 | 127 | /** |
128 | 128 | * Sets RSA private key. |
129 | 129 | * |
130 | - * @param string $privatekey RSA private key |
|
131 | - * @return object \LibSSH2\Configuration object |
|
130 | + * @param string $private_key RSA private key |
|
131 | + * @return Configuration \LibSSH2\Configuration object |
|
132 | 132 | */ |
133 | 133 | final public function set_privatekey($private_key) |
134 | 134 | { |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | * Sets passphrase. |
141 | 141 | * |
142 | 142 | * @param string $passphrase passphrase |
143 | - * @return object \LibSSH2\Configuration object |
|
143 | + * @return Configuration \LibSSH2\Configuration object |
|
144 | 144 | */ |
145 | 145 | final public function set_passphrase($passphrase) |
146 | 146 | { |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | * Sets hostname. |
153 | 153 | * |
154 | 154 | * @param string $host hostname |
155 | - * @return object \LibSSH2\Configuration object |
|
155 | + * @return Configuration \LibSSH2\Configuration object |
|
156 | 156 | */ |
157 | 157 | final public function set_host($host) |
158 | 158 | { |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | * Sets port. |
165 | 165 | * |
166 | 166 | * @param int $port port |
167 | - * @return object \LibSSH2\Configuration object |
|
167 | + * @return Configuration \LibSSH2\Configuration object |
|
168 | 168 | */ |
169 | 169 | final public function set_port($port) |
170 | 170 | { |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | * Sets methods. |
177 | 177 | * |
178 | 178 | * @param array $methods remote connection methods |
179 | - * @return object \LibSSH2\Configuration object |
|
179 | + * @return Configuration \LibSSH2\Configuration object |
|
180 | 180 | */ |
181 | 181 | final public function set_methods(array $methods = null) |
182 | 182 | { |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | /** |
191 | 191 | * Sets tunnel. |
192 | 192 | * |
193 | - * @return object \LibSSH2\Configuration object |
|
193 | + * @return Configuration \LibSSH2\Configuration object |
|
194 | 194 | */ |
195 | 195 | final public function set_tunnel() |
196 | 196 | { |
@@ -201,8 +201,7 @@ discard block |
||
201 | 201 | /** |
202 | 202 | * Sets tunnel hostname. |
203 | 203 | * |
204 | - * @param string $hostname hostname |
|
205 | - * @return object \LibSSH2\Configuration object |
|
204 | + * @return Configuration \LibSSH2\Configuration object |
|
206 | 205 | */ |
207 | 206 | final public function set_tunnel_host($host) |
208 | 207 | { |
@@ -215,7 +214,7 @@ discard block |
||
215 | 214 | * Sets tunnel port. |
216 | 215 | * |
217 | 216 | * @param int $port port |
218 | - * @return object \LibSSH2\Configuration object |
|
217 | + * @return Configuration \LibSSH2\Configuration object |
|
219 | 218 | */ |
220 | 219 | final public function set_tunnel_port($port) |
221 | 220 | { |
@@ -22,9 +22,8 @@ discard block |
||
22 | 22 | /** |
23 | 23 | * Constructor. |
24 | 24 | * |
25 | - * @param instance $configuration Configuration class instance |
|
26 | - * @param instance $authentication Authentication class instance |
|
27 | - * @param boolean $tunnel require SSH tunnel |
|
25 | + * @param Configuration $configuration Configuration class instance |
|
26 | + * @param Authentication $authentication Authentication class instance |
|
28 | 27 | * @return void |
29 | 28 | */ |
30 | 29 | public function __construct(Configuration $configuration, Authentication $authentication) |
@@ -56,7 +55,7 @@ discard block |
||
56 | 55 | /** |
57 | 56 | * Create remote connection resource. |
58 | 57 | * |
59 | - * @param resource $configuration \LibSSH2\Configuration object |
|
58 | + * @param Configuration $configuration \LibSSH2\Configuration object |
|
60 | 59 | * @return void |
61 | 60 | */ |
62 | 61 | final public function connect(Configuration $configuration) |
@@ -71,8 +70,6 @@ discard block |
||
71 | 70 | /** |
72 | 71 | * Create remote tunnel connection resource. |
73 | 72 | * |
74 | - * @param string $host hostname |
|
75 | - * @param int $port port (default=22) |
|
76 | 73 | * @return void |
77 | 74 | */ |
78 | 75 | final public function tunnel(Configuration $configuration) |
@@ -87,7 +84,7 @@ discard block |
||
87 | 84 | /** |
88 | 85 | * Authenticate remote connection resource. |
89 | 86 | * |
90 | - * @param resource $authentication \LibSSH2\Authentication\Authentication interface object |
|
87 | + * @param Authentication $authentication \LibSSH2\Authentication\Authentication interface object |
|
91 | 88 | * @return void |
92 | 89 | */ |
93 | 90 | final public function authenticate(Authentication $authentication) |
@@ -24,8 +24,8 @@ discard block |
||
24 | 24 | /** |
25 | 25 | * Constructor. |
26 | 26 | * |
27 | - * @param instance $configuration Configuration instance |
|
28 | - * @param instance $authentication Authentication instance |
|
27 | + * @param Configuration $configuration Configuration instance |
|
28 | + * @param Authentication $authentication Authentication instance |
|
29 | 29 | * @return void |
30 | 30 | */ |
31 | 31 | public function __construct(Configuration $configuration, Authentication $authentication) |
@@ -131,6 +131,7 @@ discard block |
||
131 | 131 | * Execute Kerberos command. |
132 | 132 | * |
133 | 133 | * @param string $command command to be executed |
134 | + * @param boolean $strict |
|
134 | 135 | * @return array return code and STDOUT |
135 | 136 | */ |
136 | 137 | final private function _exec($command, $strict) |