feat: add QRCodeOptions provider
feat: add QRCodeOptions provider
This commit is contained in:
21
src/Service/QRCodeQROptionsDefaultProvider.php
Normal file
21
src/Service/QRCodeQROptionsDefaultProvider.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Service;
|
||||
|
||||
use App\Entity\QRCode\QRCodeQROptions;
|
||||
|
||||
readonly class QRCodeQROptionsDefaultProvider implements QRCodeQROptionsProviderInterface {
|
||||
private readonly QRCodeQROptions $qrCodeDefaultOptions;
|
||||
|
||||
public function __construct() {
|
||||
$this->qrCodeDefaultOptions = new QRCodeQROptions(
|
||||
1,
|
||||
0
|
||||
);
|
||||
}
|
||||
|
||||
public function getDefault(): QRCodeQROptions {
|
||||
return $this->qrCodeDefaultOptions;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user