fix: add QRCodeGeneratorException

This commit is contained in:
Ondrej Vlach 2024-01-18 14:22:27 +01:00
parent 264e0260cf
commit beb7b06bf4
Signed by: ovlach
GPG Key ID: 4FF1A23B4914DE70
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,9 @@
<?php
declare(strict_types=1);
namespace App\Service\Exception;
class QRCodeGeneratorException extends \RuntimeException
{
}

View File

@ -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;
}