-
-
Notifications
You must be signed in to change notification settings - Fork 766
Expand file tree
/
Copy pathGdResult.php
More file actions
34 lines (27 loc) · 729 Bytes
/
GdResult.php
File metadata and controls
34 lines (27 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
declare(strict_types=1);
namespace Endroid\QrCode\Writer\Result;
use Endroid\QrCode\Matrix\MatrixInterface;
class GdResult extends AbstractResult
{
public function __construct(
MatrixInterface $matrix,
protected readonly \GdImage $image,
) {
parent::__construct($matrix);
}
public function getImage(): \GdImage
{
return $this->image;
}
#[\Override]
public function getString(): string
{
throw new \Exception('You can only use this method in a concrete implementation');
}
#[\Override]
public function getMimeType(): string
{
throw new \Exception('You can only use this method in a concrete implementation');
}
}