NotifyIfAvail/src/Entity/Notification.php
2025-03-05 02:08:16 +01:00

46 lines
930 B
PHP

<?php
namespace NotifyIfAvail\Entity;
use Shopware\Core\Framework\DataAbstractionLayer\Entity;
use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
class Notification extends Entity
{
use EntityIdTrait;
protected string $email;
protected string $productId;
protected ?\DateTimeInterface $createdAt;
public function getEmail(): string
{
return $this->email;
}
public function setEmail(string $email): void
{
$this->email = $email;
}
public function getProductId(): string
{
return $this->productId;
}
public function setProductId(string $productId): void
{
$this->productId = $productId;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeInterface $createdAt): void
{
$this->createdAt = $createdAt;
}
}