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