Total Complexity | 4 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
9 | class PngStrategy extends TransparentStrategy implements ImageTypeStrategyInterface |
||
10 | { |
||
11 | 11 | public function create(string $filename): GdImage |
|
14 | } |
||
15 | |||
16 | 1 | public function save(GdImage $resource, string $filename, int $compression = 100): void |
|
19 | } |
||
20 | |||
21 | 2 | public function getContentType(): string |
|
22 | { |
||
23 | 2 | return 'image/png'; |
|
24 | } |
||
25 | |||
26 | 8 | public function render(GdImage $resource): void |
|
31 | } |
||
32 | } |
||
33 |