src/Entity/LookUpTableData.php line 13
<?phpnamespace App\Entity;use App\Repository\LookUpTableDataRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use Gedmo\Timestampable\Traits\TimestampableEntity;#[ORM\Entity(repositoryClass: LookUpTableDataRepository::class)]class LookUpTableData{use TimestampableEntity;#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\ManyToOne(inversedBy: 'lookUpTableData', fetch:'EAGER')]private ?LookUpTable $lookUpTable = null;#[ORM\Column(length: 255, nullable: true)]private ?string $returnValue = null;#[ORM\OneToMany(mappedBy: 'lookUpTableData', targetEntity: LookUpTableDataValue::class, cascade: ['persist', 'remove'])]private Collection $lookUpTableDataValues;#[ORM\Column]private ?int $ind = 0;#[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)]private ?\DateTimeInterface $startDate = null;#[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)]private ?\DateTimeInterface $endDate = null;public function __construct(){$this->lookUpTableDataValues = new ArrayCollection();}public function getId(): ?int{return $this->id;}public function getLookUpTable(): ?LookUpTable{return $this->lookUpTable;}public function setLookUpTable(?LookUpTable $lookUpTable): static{$this->lookUpTable = $lookUpTable;return $this;}public function getReturnValue(): ?string{return $this->returnValue;}public function setReturnValue(?string $returnValue): static{$this->returnValue = $returnValue;return $this;}/*** @return Collection<int, LookUpTableDataValue>*/public function getLookUpTableDataValues(): Collection{return $this->lookUpTableDataValues;}public function addLookUpTableDataValue(LookUpTableDataValue $lookUpTableDataValue): static{if (!$this->lookUpTableDataValues->contains($lookUpTableDataValue)) {$this->lookUpTableDataValues->add($lookUpTableDataValue);$lookUpTableDataValue->setLookUpTableData($this);}return $this;}public function removeLookUpTableDataValue(LookUpTableDataValue $lookUpTableDataValue): static{if ($this->lookUpTableDataValues->removeElement($lookUpTableDataValue)) {// set the owning side to null (unless already changed)if ($lookUpTableDataValue->getLookUpTableData() === $this) {$lookUpTableDataValue->setLookUpTableData(null);}}return $this;}public function getInd(): ?int{return $this->ind;}public function setInd(int $ind): static{$this->ind = $ind;return $this;}public function __toString(): string{$data = [];foreach ($this->lookUpTableDataValues as $lookUpTableDataValue) {if($lookUpTableDataValue->getValue()){$data[] = $lookUpTableDataValue->getValue();}}return implode(", ", $data);}public function getStartDate(): ?\DateTimeInterface{return $this->startDate;}public function setStartDate(?\DateTimeInterface $startDate): static{$this->startDate = $startDate;return $this;}public function getEndDate(): ?\DateTimeInterface{return $this->endDate;}public function setEndDate(?\DateTimeInterface $endDate): static{$this->endDate = $endDate;return $this;}}