1 | <?php |
||
17 | class PngWriter extends AbstractWriter |
||
18 | { |
||
19 | use ImageTrait; |
||
20 | |||
21 | /** |
||
22 | * PngWriter constructor. |
||
23 | */ |
||
24 | public function __construct() |
||
28 | |||
29 | /** |
||
30 | * @inheritdoc |
||
31 | */ |
||
32 | public function getContentType(): string |
||
36 | |||
37 | /** |
||
38 | * @param resource $image |
||
39 | * |
||
40 | * @return string |
||
41 | */ |
||
42 | protected function imageToString($image): string |
||
49 | } |
||
50 |