| 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 createURI($relativePath) |
||
| 26 | |||
| 27 | public function isFileExists($relativePath) |
||
| 31 | |||
| 32 | public function save(Http\FileUpload $fileUpload, $relativePath) |
||
| 42 | |||
| 43 | public function remove($relativePath) |
||
| 50 | } |
If you suppress an error, we recommend checking for the error condition explicitly: