| 1 | <?php |
||
| 9 | class Stream |
||
| 10 | { |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @return Curl |
||
| 14 | */ |
||
| 15 | protected static function curl(): Curl |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param string $from |
||
| 22 | * @param string $to |
||
| 23 | * |
||
| 24 | * @return bool |
||
| 25 | * |
||
| 26 | * @throws Exceptions\PermissionDenied |
||
| 27 | * @throws NotFound\Path |
||
| 28 | */ |
||
| 29 | 3 | public static function download($from, $to): bool |
|
| 50 | |||
| 51 | /** |
||
| 52 | * @param string|array $options |
||
| 53 | * @param array $data |
||
| 54 | * |
||
| 55 | * @return Curl |
||
| 56 | * |
||
| 57 | * @throws Exceptions\Invalid |
||
| 58 | */ |
||
| 59 | public static function upload($options, array $data = []): Curl |
||
| 99 | |||
| 100 | } |
||
| 101 |