src/Entity/Client.php line 12
<?phpnamespace App\Entity;use App\Repository\ClientRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: ClientRepository::class)]class Client{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]private ?\DateTimeInterface $CreatedAt = null;#[ORM\ManyToOne(inversedBy: 'clients')]private ?User $createdBy = null;#[ORM\Column(length: 100, nullable: true)]private ?string $FirstName = null;#[ORM\Column(length: 100, nullable: true)]private ?string $LastName = null;#[ORM\Column(length: 2, nullable: true)]private ?string $Gender = null;#[ORM\ManyToOne(inversedBy: 'clients')]private ?LawOffice $LawOffice = null;#[ORM\Column(length: 10, nullable: true)]private ?string $IdNumber = null;#[ORM\Column(type: Types::TEXT, nullable: true)]private ?string $Adress = null;#[ORM\Column(length: 20, nullable: true)]private ?string $phone = null;#[ORM\OneToMany(mappedBy: 'Client', targetEntity: TheCase::class)]private Collection $theCases;#[ORM\Column(nullable: true)]private ?bool $IsDeleted = null;#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]private ?\DateTimeInterface $DeletedAt = null;#[ORM\ManyToOne]private ?User $DeletedBy = null;#[ORM\Column(length: 20, nullable: true)]private ?string $SecondaryPhone = null;public function __construct(){$this->theCases = new ArrayCollection();}public function getId(): ?int{return $this->id;}public function getFirstName(): ?string{return $this->FirstName;}public function setFirstName(?string $FirstName): self{$this->FirstName = $FirstName;return $this;}public function getLastName(): ?string{return $this->LastName;}public function setLastName(?string $LastName): self{$this->LastName = $LastName;return $this;}public function getGender(): ?string{return $this->Gender;}public function setGender(?string $Gender): self{$this->Gender = $Gender;return $this;}public function getCreatedAt(): ?\DateTimeInterface{return $this->CreatedAt;}public function setCreatedAt(?\DateTimeInterface $CreatedAt): self{$this->CreatedAt = $CreatedAt;return $this;}public function getCreatedBy(): ?User{return $this->createdBy;}public function setCreatedBy(?User $createdBy): self{$this->createdBy = $createdBy;return $this;}public function getLawOffice(): ?LawOffice{return $this->LawOffice;}public function setLawOffice(?LawOffice $LawOffice): self{$this->LawOffice = $LawOffice;return $this;}public function getIdNumber(): ?string{return $this->IdNumber;}public function setIdNumber(?string $IdNumber): self{$this->IdNumber = $IdNumber;return $this;}public function getAdress(): ?string{return $this->Adress;}public function setAdress(?string $Adress): self{$this->Adress = $Adress;return $this;}public function getPhone(): ?string{return $this->phone;}public function setPhone(?string $phone): self{$this->phone = $phone;return $this;}/*** @return Collection<int, TheCase>*/public function getTheCases(): Collection{return $this->theCases;}public function addTheCase(TheCase $theCase): self{if (!$this->theCases->contains($theCase)) {$this->theCases->add($theCase);$theCase->setClient($this);}return $this;}public function removeTheCase(TheCase $theCase): self{if ($this->theCases->removeElement($theCase)) {// set the owning side to null (unless already changed)if ($theCase->getClient() === $this) {$theCase->setClient(null);}}return $this;}public function isIsDeleted(): ?bool{return $this->IsDeleted;}public function setIsDeleted(bool $IsDeleted): self{$this->IsDeleted = $IsDeleted;return $this;}public function getDeletedAt(): ?\DateTimeInterface{return $this->DeletedAt;}public function setDeletedAt(\DateTimeInterface $DeletedAt): self{$this->DeletedAt = $DeletedAt;return $this;}public function getDeletedBy(): ?User{return $this->DeletedBy;}public function setDeletedBy(?User $DeletedBy): self{$this->DeletedBy = $DeletedBy;return $this;}public function getFullName(): string{return $this->getFirstName() . ' ' . $this->getLastName();}public function getSecondaryPhone(): ?string{return $this->SecondaryPhone;}public function setSecondaryPhone(?string $SecondaryPhone): self{$this->SecondaryPhone = $SecondaryPhone;return $this;}}