* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShop\PrestaShop\Core\Domain\Attachment\Query; use PrestaShop\PrestaShop\Core\Domain\Attachment\ValueObject\AttachmentId; /** * Get attachment query */ class GetAttachment { /** * @var AttachmentId */ private $attachmentId; /** * @param int $attachmentId */ public function __construct(int $attachmentId) { $this->attachmentId = new AttachmentId($attachmentId); } /** * @return AttachmentId */ public function getAttachmentId(): AttachmentId { return $this->attachmentId; } }