Total Complexity | 5 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
9 | class JpegStrategy implements ImageTypeStrategyInterface |
||
10 | { |
||
11 | 6 | public function create(string $filename): GdImage |
|
14 | } |
||
15 | |||
16 | 1 | public function save(GdImage $resource, string $filename, int $compression): void |
|
19 | } |
||
20 | |||
21 | 1 | public function getContentType(): string |
|
22 | { |
||
23 | 1 | return 'image/jpeg'; |
|
24 | } |
||
25 | |||
26 | 4 | public function render(GdImage $resource): void |
|
29 | } |
||
30 | |||
31 | 1 | public function handleTransparency(GdImage $newImage, GdImage $image): void |
|
33 | // Jpeg's aren't transparent. |
||
34 | 1 | } |
|
36 |