| 1 | <?php |
||
| 9 | abstract class AbstractGetFileEntryPoint extends AbstractEntryPoint { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * The directory in which to download the File |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $downloadDir = null; |
||
| 16 | |||
| 17 | 1 | public function __construct($url, array $options = array()){ |
|
| 21 | |||
| 22 | 1 | public function execute($data = null){ |
|
| 27 | |||
| 28 | /** |
||
| 29 | * Set the download directory for the File the EntryPoint is retrieving |
||
| 30 | * @param $path |
||
| 31 | * @return $this |
||
| 32 | */ |
||
| 33 | 1 | public function downloadTo($path){ |
|
| 37 | |||
| 38 | /** |
||
| 39 | * Get the download directory for the File the EntryPoint is retrieving |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | 1 | public function getDownloadDir(){ |
|
| 45 | |||
| 46 | } |