Total Complexity | 1 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | class SftpFactory extends AbstractFactory |
||
26 | { |
||
27 | protected string $alias = 'sftp'; |
||
28 | protected ?string $package = 'league/flysystem-sftp'; |
||
29 | protected string $className = SftpAdapter::class; |
||
30 | protected array $defaults = [ |
||
31 | 'host' => '', |
||
32 | 'port' => 22, |
||
33 | 'username' => '', |
||
34 | 'password' => '', |
||
35 | 'privateKey' => '', |
||
36 | 'passphrase' => '', |
||
37 | 'root' => '/', |
||
38 | 'timeout' => 10, |
||
39 | 'directoryPerm' => 0755 |
||
40 | ]; |
||
41 | |||
42 | /** |
||
43 | * @inheritDoc |
||
44 | */ |
||
45 | 1 | public function build(array $config): AdapterInterface |
|
52 |