vendor/endroid/qr-code/src/Writer/Result/GifResult.php
raw| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Endroid\QrCode\Writer\Result; |
| 6 | |
| 7 | final class GifResult extends GdResult |
| 8 | { |
| 9 | public function getString(): string |
| 10 | { |
| 11 | ob_start(); |
| 12 | imagegif($this->image); |
| 13 | |
| 14 | return strval(ob_get_clean()); |
| 15 | } |
| 16 | |
| 17 | public function getMimeType(): string |
| 18 | { |
| 19 | return 'image/gif'; |
| 20 | } |
| 21 | } |