| 1 | <?php |
||
| 5 | class SSH2Config implements SSH2ConfigInterface |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var string |
||
| 9 | */ |
||
| 10 | protected $host; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var int |
||
| 14 | */ |
||
| 15 | protected $port; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var mixed |
||
| 19 | */ |
||
| 20 | protected $methods; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param string $host |
||
| 24 | * @param int $port |
||
| 25 | * @param mixed $methods |
||
| 26 | */ |
||
| 27 | 28 | public function __construct($host = 'localhost', $port = 22, $methods = []) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @override |
||
| 36 | * @inheritDoc |
||
| 37 | */ |
||
| 38 | 23 | public function getHost() |
|
| 42 | |||
| 43 | /** |
||
| 44 | * @override |
||
| 45 | * @inheritDoc |
||
| 46 | */ |
||
| 47 | 23 | public function getPort() |
|
| 51 | |||
| 52 | /** |
||
| 53 | * @override |
||
| 54 | * @inheritDoc |
||
| 55 | */ |
||
| 56 | 23 | public function getMethods() |
|
| 60 | } |
||
| 61 |