1 | <?php |
||
15 | class InMemoryFileFetcher implements FileFetcher { |
||
16 | |||
17 | private $files; |
||
18 | private $defaultContent; |
||
19 | |||
20 | /** |
||
21 | * @param string[] $files |
||
22 | * @param string|null $defaultContent Content that is returned when there is no matching entry in $files |
||
23 | * @throws InvalidArgumentException |
||
24 | */ |
||
25 | 10 | public function __construct( array $files, string $defaultContent = null ) { |
|
35 | |||
36 | /** |
||
37 | * @see FileFetcher::fetchFile |
||
38 | * @throws FileFetchingException |
||
39 | */ |
||
40 | 9 | public function fetchFile( string $fileUrl ): string { |
|
51 | |||
52 | } |
||
53 |