| Total Complexity | 5 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | class LocalComponent extends AbstractComponent |
||
| 29 | { |
||
| 30 | /** |
||
| 31 | * @var string |
||
| 32 | */ |
||
| 33 | public $path; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @inheritdoc |
||
| 37 | */ |
||
| 38 | public function init() |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Get a URL |
||
| 51 | * |
||
| 52 | * @param string $filePath |
||
| 53 | * @return string |
||
| 54 | */ |
||
| 55 | public function getUrl(string $filePath) |
||
| 56 | { |
||
| 57 | throw new InvalidConfigException('Not Implemented'); |
||
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * Get a pre-signed URL |
||
| 62 | * |
||
| 63 | * @param string $filePath |
||
| 64 | * @param int|string|\DateTimeInterface $expires |
||
| 65 | * @return string |
||
| 66 | */ |
||
| 67 | public function getPresignedUrl(string $filePath, $expires = '+5 Minutes') |
||
| 68 | { |
||
| 69 | throw new InvalidConfigException('Not Implemented'); |
||
| 70 | } |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @return LocalFilesystemAdapter |
||
| 74 | */ |
||
| 75 | protected function initAdapter() |
||
| 78 | } |
||
| 79 | } |
||
| 80 |