Total Complexity | 3 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class QrCode extends BaseQrCode implements QrCodeInterface |
||
10 | { |
||
11 | const FILE_FORMAT_PNG = 'png'; |
||
12 | const FILE_FORMAT_SVG = 'svg'; |
||
13 | |||
14 | // A file extension is supported if the underlying library supports it, |
||
15 | // including the possibility to add a logo in the center of the qr code. |
||
16 | const SUPPORTED_FILE_FORMATS = [ |
||
17 | self::FILE_FORMAT_PNG, |
||
18 | self::FILE_FORMAT_SVG |
||
19 | ]; |
||
20 | |||
21 | public function writeFile(string $path): void |
||
26 | } |
||
27 | |||
28 | public function setWriterByExtension(string $extension): void |
||
39 | } |
||
40 | } |