| 1 | <?php |
||
| 12 | class Local implements ServerInterface |
||
| 13 | { |
||
| 14 | const TIMEOUT = 300; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var Configuration |
||
| 18 | */ |
||
| 19 | 1 | private $configuration; |
|
| 20 | |||
| 21 | /** |
||
| 22 | 1 | * Local constructor. |
|
| 23 | * @param $config |
||
| 24 | */ |
||
| 25 | public function __construct(Configuration $config = null) |
||
| 33 | 12 | ||
| 34 | /** |
||
| 35 | 12 | * @return Configuration |
|
| 36 | */ |
||
| 37 | public function getConfiguration() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * {@inheritdoc} |
||
| 44 | */ |
||
| 45 | public function connect() |
||
| 49 | |||
| 50 | /** |
||
| 51 | * {@inheritdoc} |
||
| 52 | */ |
||
| 53 | public function run($command) |
||
| 63 | |||
| 64 | /** |
||
| 65 | * {@inheritdoc} |
||
| 66 | */ |
||
| 67 | public function upload($local, $remote) |
||
| 71 | |||
| 72 | /** |
||
| 73 | * {@inheritdoc} |
||
| 74 | */ |
||
| 75 | public function download($local, $remote) |
||
| 79 | } |
||
| 80 |