src/Entity/Purpose.php line 12
<?phpnamespace App\Entity;use App\Repository\PurposeRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: PurposeRepository::class)]class Purpose{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]private ?\DateTimeInterface $CreatedAt = null;#[ORM\ManyToOne]private ?User $CreatedBy = null;#[ORM\Column(type: Types::TEXT, nullable: true)]private ?string $Content = null;#[ORM\ManyToOne]private ?LawOffice $LawOffice = null;#[ORM\Column(nullable: true)]private ?bool $IsJudgement = null;#[ORM\OneToMany(mappedBy: 'Purpose', targetEntity: TheCaseActions::class)]private Collection $theCaseActions;public function __construct(){$this->theCaseActions = new ArrayCollection();}public function getId(): ?int{return $this->id;}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 getContent(): ?string{return $this->Content;}public function setContent(?string $Content): self{$this->Content = $Content;return $this;}public function getLawOffice(): ?LawOffice{return $this->LawOffice;}public function setLawOffice(?LawOffice $LawOffice): self{$this->LawOffice = $LawOffice;return $this;}public function isIsJudgement(): ?bool{return $this->IsJudgement;}public function setIsJudgement(?bool $IsJudgement): self{$this->IsJudgement = $IsJudgement;return $this;}/*** @return Collection<int, TheCaseActions>*/public function getTheCaseActions(): Collection{return $this->theCaseActions;}public function addTheCaseAction(TheCaseActions $theCaseAction): self{if (!$this->theCaseActions->contains($theCaseAction)) {$this->theCaseActions->add($theCaseAction);$theCaseAction->setPurpose($this);}return $this;}public function removeTheCaseAction(TheCaseActions $theCaseAction): self{if ($this->theCaseActions->removeElement($theCaseAction)) {// set the owning side to null (unless already changed)if ($theCaseAction->getPurpose() === $this) {$theCaseAction->setPurpose(null);}}return $this;}}