1 | <?php |
||
15 | class SpyingFileFetcher implements FileFetcher { |
||
16 | |||
17 | private $fileFetcher; |
||
18 | |||
19 | private $fetchedUrls = []; |
||
20 | |||
21 | 4 | public function __construct( FileFetcher $fileFetcher ) { |
|
24 | |||
25 | /** |
||
26 | * @see FileFetcher::fetchFile |
||
27 | * @throws FileFetchingException |
||
28 | */ |
||
29 | 3 | public function fetchFile( string $fileUrl ): string { |
|
33 | |||
34 | /** |
||
35 | * Returns an ordered list of fetched URLs. Duplicates are preserved. |
||
36 | * |
||
37 | * @return string[] |
||
38 | */ |
||
39 | 3 | public function getFetchedUrls(): array { |
|
42 | |||
43 | } |
||
44 |