AbstractQrCodeInfrastructureService.php
2 months ago
QrCodeInfrastructureService.php
2 months ago
StarterQrCodeInfrastructureService.php
2 months ago
AbstractQrCodeInfrastructureService.php
31 lines
| 1 | <?php |
| 2 | |
| 3 | namespace AmeliaBooking\Infrastructure\Services\QrCode; |
| 4 | |
| 5 | use AmeliaBooking\Domain\Common\Exceptions\InvalidArgumentException; |
| 6 | use AmeliaBooking\Infrastructure\Common\Container; |
| 7 | use AmeliaBooking\Infrastructure\Common\Exceptions\NotFoundException; |
| 8 | use AmeliaBooking\Infrastructure\Common\Exceptions\QueryExecutionException; |
| 9 | |
| 10 | /** |
| 11 | * Class AbstractQrCodeInfrastructureService |
| 12 | * |
| 13 | * @package AmeliaBooking\Infrastructure\Services\QrCode |
| 14 | */ |
| 15 | abstract class AbstractQrCodeInfrastructureService |
| 16 | { |
| 17 | protected Container $container; |
| 18 | |
| 19 | public function __construct(Container $container) |
| 20 | { |
| 21 | $this->container = $container; |
| 22 | } |
| 23 | |
| 24 | /** |
| 25 | * @throws InvalidArgumentException |
| 26 | * @throws NotFoundException |
| 27 | * @throws QueryExecutionException |
| 28 | */ |
| 29 | abstract public function generateQrCode(array $qrData): array; |
| 30 | } |
| 31 |