| 1 | <?php |
||
| 20 | class StopwatchFileFetcher implements FileFetcher { |
||
| 21 | |||
| 22 | public const STOPWATCH_CATEGORY = 'file_fetcher'; |
||
| 23 | |||
| 24 | private $fileFetcher; |
||
| 25 | private $stopwatch; |
||
| 26 | private $category; |
||
| 27 | |||
| 28 | 5 | public function __construct( FileFetcher $fileFetcher, Stopwatch $stopwatch, string $category = self::STOPWATCH_CATEGORY ) { |
|
| 33 | |||
| 34 | 5 | public function fetchFile( string $fileUrl ): string { |
|
| 49 | |||
| 50 | } |
||
| 51 |