vendor/endroid/qr-code/src/Label/Font/NotoSans.php
raw| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Endroid\QrCode\Label\Font; |
| 6 | |
| 7 | final class NotoSans implements FontInterface |
| 8 | { |
| 9 | public function __construct( |
| 10 | private int $size = 16 |
| 11 | ) { |
| 12 | } |
| 13 | |
| 14 | public function getPath(): string |
| 15 | { |
| 16 | return __DIR__.'/../../../assets/noto_sans.otf'; |
| 17 | } |
| 18 | |
| 19 | public function getSize(): int |
| 20 | { |
| 21 | return $this->size; |
| 22 | } |
| 23 | } |