1 | <?php |
||
8 | class Ftp implements Upload\IDriver |
||
9 | { |
||
10 | /** @var string */ |
||
11 | private $hostUrl; |
||
12 | |||
13 | /** @var \Ftp */ |
||
14 | private $ftp; |
||
15 | |||
16 | public function __construct($hostUrl, \Ftp $ftp) |
||
21 | |||
22 | public function createName(Http\FileUpload $fileUpload) |
||
26 | |||
27 | public function createURI($relativePath) |
||
31 | |||
32 | public function isFileExists($relativePath) |
||
36 | |||
37 | public function save(Http\FileUpload $fileUpload, $relativePath) |
||
47 | |||
48 | public function remove($relativePath) |
||
55 | |||
56 | |||
57 | } |
If you suppress an error, we recommend checking for the error condition explicitly: