| 1 | <?php |
||
| 5 | class PdfTransformer implements PreviewTransformerInterface |
||
| 6 | { |
||
| 7 | /** @var \Imagick */ |
||
| 8 | protected $imagick; |
||
| 9 | |||
| 10 | 3 | public function __construct(\Imagick $imagick) |
|
| 14 | |||
| 15 | /** |
||
| 16 | * Apply the transformer on the absolute path and return an altered version of it. |
||
| 17 | * |
||
| 18 | * @param string $absolutePath |
||
| 19 | * |
||
| 20 | * @return string|false |
||
| 21 | */ |
||
| 22 | 2 | public function apply($absolutePath) |
|
| 42 | |||
| 43 | /** |
||
| 44 | * @param string $absolutePath |
||
| 45 | * |
||
| 46 | * @return string |
||
| 47 | */ |
||
| 48 | 3 | public function getPreviewFilename($absolutePath) |
|
| 52 | } |
||
| 53 |