<?php
declare(strict_types=1);
namespace Slivki\Message\Query\OnlineOrder\GiftCertificate;
use Slivki\Entity\User;
use Slivki\Messenger\Query\QueryInterface;
final class SelectGiftCertificatesForBuyOnlyCodesQuery implements QueryInterface
{
private ?User $user;
private int $offerId;
public function __construct(?User $user, int $offerId)
{
$this->user = $user;
$this->offerId = $offerId;
}
public function getUser(): ?User
{
return $this->user;
}
public function getOfferId(): int
{
return $this->offerId;
}
}