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 * Flysystem 3.x requires PHP 8.
4 *
5 * @package BrianHenryIE\FlysystemReadOnly
6 */
7
8namespace BrianHenryIE\FlysystemReadOnly;
9
10/**
11 * The methods {@see FlysystemReaderBackCompatTrait} back-fills on a `Filesystem` under Flysystem 2.
12 *
13 * @see \League\Flysystem\FilesystemReader
14 * @see \League\Flysystem\FilesystemOperator
15 * @see \League\Flysystem\Filesystem
16 */
17interface FlysystemReaderBackCompatTraitInterface extends FlysystemAdapterBackCompatTraitInterface
18{
19    /**
20     * Determine whether a directory exists at the given location.
21     *
22     * @param string $location The path to check.
23     */
24    public function directoryExists(string $location): bool;
25
26    /**
27     * Determine whether a file or a directory exists at the given location.
28     *
29     * @param string $location The path to check.
30     */
31    public function has(string $location): bool;
32}