fix: add QRCodeGeneratorException
This commit is contained in:
parent
264e0260cf
commit
beb7b06bf4
9
src/Service/Exception/QRCodeGeneratorException.php
Normal file
9
src/Service/Exception/QRCodeGeneratorException.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Service\Exception;
|
||||
|
||||
class QRCodeGeneratorException extends \RuntimeException
|
||||
{
|
||||
|
||||
}
|
@ -4,6 +4,7 @@ declare(strict_types=1);
|
||||
namespace App\Service;
|
||||
|
||||
use App\Entity\QRCode\QRCode;
|
||||
use App\Service\Exception\QRCodeGeneratorException;
|
||||
|
||||
interface QRCodeGeneratorInterface
|
||||
{
|
||||
@ -11,6 +12,7 @@ interface QRCodeGeneratorInterface
|
||||
* Generates QR code from entity
|
||||
* @param QRCode $entity
|
||||
* @return string base64 encoded PNG
|
||||
* @throws QRCodeGeneratorException
|
||||
*/
|
||||
public function generateQRCodeFromEntity(QRCode $entity): string;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user