src/Entity/CRM/AgreementContractTemplateSet.php line 12
<?phpnamespace App\Entity\CRM;use App\Repository\CRM\AgreementContractTemplateSetRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: AgreementContractTemplateSetRepository::class)]class AgreementContractTemplateSet{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255)]private ?string $versionLabel = null;#[ORM\Column(type: Types::DATETIME_MUTABLE)]private ?\DateTimeInterface $validFrom = null;#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]private ?\DateTimeInterface $validTo = null;#[ORM\Column]private ?bool $isActive = null;#[ORM\Column(type: Types::DATETIME_MUTABLE)]private ?\DateTimeInterface $createdAt = null;#[ORM\ManyToOne(inversedBy: 'agreementContractTemplateSets')]#[ORM\JoinColumn(nullable: false)]private ?Agreement $agreement = null;#[ORM\OneToMany(mappedBy: 'templateSet', targetEntity: AgreementContractTemplate::class)]private Collection $agreementContractTemplates;public function __construct(){$this->agreementContractTemplates = new ArrayCollection();$this->createdAt = new \DateTime();}public function __toString(): string{return $this->agreement.' - v'.$this->versionLabel;}public function getId(): ?int{return $this->id;}public function getVersionLabel(): ?string{return $this->versionLabel;}public function setVersionLabel(string $versionLabel): static{$this->versionLabel = $versionLabel;return $this;}public function getValidFrom(): ?\DateTimeInterface{return $this->validFrom;}public function setValidFrom(\DateTimeInterface $validFrom): static{$this->validFrom = $validFrom;return $this;}public function getValidTo(): ?\DateTimeInterface{return $this->validTo;}public function setValidTo(?\DateTimeInterface $validTo): static{$this->validTo = $validTo;return $this;}public function isIsActive(): ?bool{return $this->isActive;}public function setIsActive(bool $isActive): static{$this->isActive = $isActive;return $this;}public function getCreatedAt(): ?\DateTimeInterface{return $this->createdAt;}public function setCreatedAt(\DateTimeInterface $createdAt): static{$this->createdAt = $createdAt;return $this;}public function getAgreement(): ?Agreement{return $this->agreement;}public function setAgreement(?Agreement $agreement): static{$this->agreement = $agreement;return $this;}public function getAgreementContractTemplates(): Collection{return $this->agreementContractTemplates;}public function setAgreementContractTemplates(Collection $agreementContractTemplates): void{$this->agreementContractTemplates = $agreementContractTemplates;}}