Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | /** |
| 3 | * `FlysystemAdapterBackCompatTrait` needs to normalize paths. |
| 4 | * |
| 5 | * @package BrianHenryIE\FlysystemReadOnly |
| 6 | * |
| 7 | * @see \League\Flysystem\FilesystemAdapter |
| 8 | */ |
| 9 | |
| 10 | namespace BrianHenryIE\FlysystemReadOnly; |
| 11 | |
| 12 | use League\Flysystem\FilesystemReader; |
| 13 | use League\Flysystem\PathNormalizer; |
| 14 | |
| 15 | /** |
| 16 | * The methods {@see FlysystemAdapterBackCompatTrait} back-fills on an adapter under Flysystem 3. |
| 17 | * |
| 18 | * @see FlysystemAdapterBackCompatTrait |
| 19 | */ |
| 20 | interface FlysystemAdapterBackCompatTraitInterface |
| 21 | { |
| 22 | /** |
| 23 | * Determine whether a directory exists at the given location. |
| 24 | * |
| 25 | * Implementation is provided by {@see FlysystemAdapterBackCompatTrait::directoryExists()}. |
| 26 | * |
| 27 | * @param string $location The path to check. |
| 28 | * |
| 29 | * @see FilesystemReader::directoryExists() |
| 30 | */ |
| 31 | public function directoryExists(string $location): bool; |
| 32 | |
| 33 | /** |
| 34 | * Return the path in its canonical form, as the adapter stores it. |
| 35 | * |
| 36 | * @param string $path The path to normalize. |
| 37 | * |
| 38 | * @see PathNormalizer |
| 39 | */ |
| 40 | public function normalizePath(string $path): string; |
| 41 | } |