206 lines
4.5 KiB
PHP
206 lines
4.5 KiB
PHP
<?php
|
|
|
|
namespace App\Entity;
|
|
|
|
use App\Repository\ContactsRepository;
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
#[ORM\Entity(repositoryClass: ContactsRepository::class)]
|
|
#[ORM\UniqueConstraint(
|
|
name: 'unique_quartal',
|
|
columns: ['phone_number', 'due_quartal'],
|
|
options: ['where' => "due_quartal IS NOT NULL"]
|
|
)]
|
|
class Contacts
|
|
{
|
|
#[ORM\Id]
|
|
#[ORM\GeneratedValue]
|
|
#[ORM\Column]
|
|
private ?int $id = null;
|
|
|
|
#[ORM\Column(length: 255, nullable: true)]
|
|
private ?string $phone_number = null;
|
|
|
|
#[ORM\Column(nullable: true)]
|
|
private ?\DateTime $due_date = null;
|
|
|
|
#[ORM\Column(nullable: true)]
|
|
private ?int $due_quartal = null;
|
|
|
|
#[ORM\Column]
|
|
private ?bool $contacted = null;
|
|
|
|
#[ORM\Column(length: 65535, nullable: true)]
|
|
private ?string $gateway_response = null;
|
|
|
|
#[ORM\Column(nullable: true)]
|
|
private ?\DateTimeImmutable $contacted_at = null;
|
|
|
|
#[ORM\Column(length: 255, nullable: true)]
|
|
private ?string $parsed_filename = null;
|
|
|
|
#[ORM\Column(nullable: true)]
|
|
private ?int $parsed_file_linenum = null;
|
|
|
|
#[ORM\Column(length: 255, nullable: true)]
|
|
private ?string $parsed_file_line = null;
|
|
|
|
#[ORM\Column(nullable: true)]
|
|
private ?\DateTimeImmutable $parsed_at = null;
|
|
|
|
#[ORM\Column(length: 50, nullable: true)]
|
|
private ?string $study_id = null;
|
|
|
|
#[ORM\Column(length: 50, nullable: true)]
|
|
private ?string $study_id_short = null;
|
|
|
|
#[ORM\Column(nullable: false, options: ['default' => 1])]
|
|
private ?int $msg_content_type = 1;
|
|
|
|
|
|
public function getId(): ?int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function getPhoneNumber(): ?string
|
|
{
|
|
return $this->phone_number;
|
|
}
|
|
|
|
public function setPhoneNumber(?string $phone_number): static
|
|
{
|
|
$this->phone_number = $phone_number;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getDueDate(): ?\DateTime
|
|
{
|
|
return $this->due_date;
|
|
}
|
|
|
|
public function setDueDate(?\DateTime $due_date): static
|
|
{
|
|
$this->due_date = $due_date;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function isContacted(): ?bool
|
|
{
|
|
return $this->contacted;
|
|
}
|
|
|
|
public function setContacted(bool $contacted): static
|
|
{
|
|
$this->contacted = $contacted;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getGatewayResponse(): ?string
|
|
{
|
|
return $this->gateway_response;
|
|
}
|
|
|
|
public function setGatewayResponse(?string $gateway_response): static
|
|
{
|
|
$this->gateway_response = $gateway_response;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getContactedAt(): ?\DateTimeImmutable
|
|
{
|
|
return $this->contacted_at;
|
|
}
|
|
|
|
public function setContactedAt(?\DateTimeImmutable $contacted_at): static
|
|
{
|
|
$this->contacted_at = $contacted_at;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getParsedFilename(): ?string
|
|
{
|
|
return $this->parsed_filename;
|
|
}
|
|
|
|
public function setParsedFilename(?string $parsed_filename): void
|
|
{
|
|
$this->parsed_filename = $parsed_filename;
|
|
}
|
|
|
|
public function getParsedAt(): ?\DateTimeImmutable
|
|
{
|
|
return $this->parsed_at;
|
|
}
|
|
|
|
public function setParsedAt(?\DateTimeImmutable $parsed_at): void
|
|
{
|
|
$this->parsed_at = $parsed_at;
|
|
}
|
|
|
|
public function getStudyId(): ?string
|
|
{
|
|
return $this->study_id;
|
|
}
|
|
|
|
public function setStudyId(?string $study_id): void
|
|
{
|
|
$this->study_id = $study_id;
|
|
}
|
|
|
|
public function getParsedFileLinenum(): ?int
|
|
{
|
|
return $this->parsed_file_linenum;
|
|
}
|
|
|
|
public function setParsedFileLinenum(?int $parsed_file_linenum): void
|
|
{
|
|
$this->parsed_file_linenum = $parsed_file_linenum;
|
|
}
|
|
|
|
public function getParsedFileLine(): ?string
|
|
{
|
|
return $this->parsed_file_line;
|
|
}
|
|
|
|
public function setParsedFileLine(?string $parsed_file_line): void
|
|
{
|
|
$this->parsed_file_line = $parsed_file_line;
|
|
}
|
|
|
|
public function getMsgContentType(): ?int
|
|
{
|
|
return $this->msg_content_type;
|
|
}
|
|
|
|
public function setMsgContentType(?int $msg_content_type): void
|
|
{
|
|
$this->msg_content_type = $msg_content_type;
|
|
}
|
|
|
|
public function getStudyIdShort(): ?string
|
|
{
|
|
return $this->study_id_short;
|
|
}
|
|
|
|
public function setStudyIdShort(?string $study_id_short): void
|
|
{
|
|
$this->study_id_short = $study_id_short;
|
|
}
|
|
|
|
public function getDueQuartal(): ?int
|
|
{
|
|
return $this->due_quartal;
|
|
}
|
|
|
|
public function setDueQuartal(?int $due_quartal): void
|
|
{
|
|
$this->due_quartal = $due_quartal;
|
|
}
|
|
}
|