Total Complexity | 5 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
14 | class JpgCompress implements PipeInterface |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * @var array |
||
19 | */ |
||
20 | private $options = [ |
||
21 | 'driver' => 'imagick', |
||
22 | 'quality' => 60, |
||
23 | 'format' => null |
||
24 | ]; |
||
25 | |||
26 | |||
27 | /** |
||
28 | * @var ImageManager; |
||
29 | */ |
||
30 | private $manager; |
||
31 | |||
32 | |||
33 | /** |
||
34 | * JpgCompress constructor. |
||
35 | * |
||
36 | * @param array $options |
||
37 | * @param ImageManager $manager |
||
38 | * |
||
39 | */ |
||
40 | 1 | public function __construct(array $options = [], ImageManager $manager = null) |
|
44 | 1 | } |
|
45 | |||
46 | |||
47 | /** |
||
48 | * @param Source $source |
||
49 | * |
||
50 | * @return void |
||
51 | */ |
||
52 | 1 | public function execute(Source $source) |
|
66 |