46 lines
930 B
PHP
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;
|
|
}
|
|
}
|