Debian Codegraph @

vendor/endroid/qr-code/src/Writer/Result/GdResult.php

raw
1 <?php
2
3 declare(strict_types=1);
4
5 namespace Endroid\QrCode\Writer\Result;
6
7 use Endroid\QrCode\Matrix\MatrixInterface;
8
9 class GdResult extends AbstractResult
10 {
11 public function __construct(
12 MatrixInterface $matrix,
13 protected readonly \GdImage $image
14 ) {
15 parent::__construct($matrix);
16 }
17
18 public function getImage(): \GdImage
19 {
20 return $this->image;
21 }
22
23 public function getString(): string
24 {
25 throw new \Exception('You can only use this method in a concrete implementation');
26 }
27
28 public function getMimeType(): string
29 {
30 throw new \Exception('You can only use this method in a concrete implementation');
31 }
32 }