Total Complexity | 4 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
15 | class PreviewGenerator implements PreviewGeneratorInterface |
||
|
|||
16 | { |
||
17 | /** @var string */ |
||
18 | private $location; |
||
19 | /** @var ImageBuilderInterface */ |
||
20 | private $imageBuilder; |
||
21 | /** @var Filesystem */ |
||
22 | private $filesystem; |
||
23 | |||
24 | 3 | public function __construct(ImageBuilderInterface $imageBuilder, Filesystem $filesystem, string $location) |
|
25 | { |
||
26 | 3 | $this->location = $location; |
|
27 | 3 | $this->imageBuilder = $imageBuilder; |
|
28 | 3 | $this->filesystem = $filesystem; |
|
29 | } |
||
30 | |||
31 | /** |
||
32 | * Generates and stores preview for provided website and returns the path to the image file |
||
33 | * |
||
34 | * @throws PreviewGenerationException |
||
35 | */ |
||
36 | 3 | public function generatePreview(string $url): string |
|
56 | } |
||
57 | } |
||
58 |
This interface has been deprecated. The supplier of the interface has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the interface will be removed and what other interface to use instead.