66 lines
1.3 KiB
PHP
66 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace App\Entity;
|
|
|
|
use App\Repository\AlertSmsRepository;
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
use DateTimeInterface;
|
|
|
|
#[ORM\Entity(repositoryClass: AlertSmsRepository::class)]
|
|
class AlertSms
|
|
{
|
|
#[ORM\Id]
|
|
#[ORM\GeneratedValue(strategy: "IDENTITY")]
|
|
#[ORM\Column(type: 'integer')]
|
|
private ?int $id = null;
|
|
|
|
#[ORM\OneToOne(targetEntity: Record::class, inversedBy: 'alertSms', cascade: ['persist', 'remove'])]
|
|
private ?Record $record = null;
|
|
|
|
#[ORM\Column(type: 'datetime')]
|
|
private ?DateTimeInterface $dateCreate = null;
|
|
|
|
#[ORM\Column(type: 'text')]
|
|
private ?string $response = null;
|
|
|
|
public function getId(): ?int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function getRecord(): ?Record
|
|
{
|
|
return $this->record;
|
|
}
|
|
|
|
public function setRecord(?Record $record): self
|
|
{
|
|
$this->record = $record;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getDateCreate(): ?DateTimeInterface
|
|
{
|
|
return $this->dateCreate;
|
|
}
|
|
|
|
public function setDateCreate(DateTimeInterface $dateCreate): self
|
|
{
|
|
$this->dateCreate = $dateCreate;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getResponse(): ?string
|
|
{
|
|
return $this->response;
|
|
}
|
|
|
|
public function setResponse(string $response): self
|
|
{
|
|
$this->response = $response;
|
|
|
|
return $this;
|
|
}
|
|
} |