src/Entity/CRM/AgreementContractTemplate.php line 10

  1. <?php
  2. namespace App\Entity\CRM;
  3. use App\Repository\CRM\AgreementContractTemplateRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassAgreementContractTemplateRepository::class)]
  7. class AgreementContractTemplate
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\ManyToOne(inversedBy'agreementContractTemplates')]
  14.     #[ORM\JoinColumn(nullablefalse)]
  15.     private ?AgreementContractTemplateSet $templateSet null;
  16.     #[ORM\Column(length255)]
  17.     private ?string $templateType null;
  18.     #[ORM\Column(typeTypes::TEXT)]
  19.     private ?string $content null;
  20.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  21.     private ?\DateTimeInterface $createdAt null;
  22.     public function __construct()
  23.     {
  24.         $this->createdAt = new \DateTime();
  25.     }
  26.     public function getId(): ?int
  27.     {
  28.         return $this->id;
  29.     }
  30.     public function getTemplateSet(): ?AgreementContractTemplateSet
  31.     {
  32.         return $this->templateSet;
  33.     }
  34.     public function setTemplateSet(?AgreementContractTemplateSet $templateSet): static
  35.     {
  36.         $this->templateSet $templateSet;
  37.         return $this;
  38.     }
  39.     public function getTemplateType(): ?string
  40.     {
  41.         return $this->templateType;
  42.     }
  43.     public function setTemplateType(string $templateType): static
  44.     {
  45.         $this->templateType $templateType;
  46.         return $this;
  47.     }
  48.     public function getContent(): ?string
  49.     {
  50.         return $this->content;
  51.     }
  52.     public function setContent(string $content): static
  53.     {
  54.         $this->content $content;
  55.         return $this;
  56.     }
  57.     public function getCreatedAt(): ?\DateTimeInterface
  58.     {
  59.         return $this->createdAt;
  60.     }
  61.     public function setCreatedAt(\DateTimeInterface $createdAt): static
  62.     {
  63.         $this->createdAt $createdAt;
  64.         return $this;
  65.     }
  66. }