1 | <?php |
||
6 | class Converter |
||
7 | { |
||
8 | /** |
||
9 | * |
||
10 | * @var boolean |
||
11 | */ |
||
12 | protected $cacheEnabled = false; |
||
13 | |||
14 | /** |
||
15 | * |
||
16 | * @var StorageInterface |
||
17 | */ |
||
18 | protected $cacheStorage; |
||
19 | |||
20 | public function __construct() |
||
23 | |||
24 | /** |
||
25 | * @return Converter\ConverterInterface |
||
26 | */ |
||
27 | public function createConverter($key, array $params = []) |
||
42 | |||
43 | /** |
||
44 | * |
||
45 | * @param StorageInterface $storage |
||
46 | * @return \Soluble\Media\Converter\ImageConverter |
||
47 | */ |
||
48 | public function setCache(StorageInterface $storage) |
||
54 | |||
55 | /** |
||
56 | * Unset cache (primarly for unit testing) |
||
57 | * @return \Soluble\Media\Converter\ImageConverter |
||
58 | */ |
||
59 | public function unsetCache() |
||
65 | } |
||
66 |