src/Entity/TheCase.php line 12

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TheCaseRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClass: TheCaseRepository::class)]
  9. class TheCase
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id = null;
  15.     #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
  16.     private ?\DateTimeInterface $CreatedAt = null;
  17.     #[ORM\ManyToOne(inversedBy: 'theCases')]
  18.     private ?User $CreatedBy = null;
  19.     #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
  20.     private ?\DateTimeInterface $UpdateAt = null;
  21.     #[ORM\Column(length: 20, nullable: true)]
  22.     private ?string $RefLawOffice = null;
  23.     
  24.     #[ORM\Column(length: 20, nullable: true)]
  25.     private ?string $FullFileTpiNum = null;
  26.     
  27.     #[ORM\Column(length: 20, nullable: true)]
  28.     private ?string $FullFileCANum = null;
  29.     #[ORM\ManyToOne]
  30.     private ?CaseType $CaseType = null;
  31.     #[ORM\ManyToOne(inversedBy: 'theCases')]
  32.     private ?Client $Client = null;
  33.     #[ORM\Column(length: 255, nullable: true)]
  34.     private ?string $OpponentName = null;
  35.     #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
  36.     private ?\DateTimeInterface $OpenedAt = null;
  37.     #[ORM\OneToMany(mappedBy: 'theCase', targetEntity: TheCaseActions::class)]
  38.     private Collection $Actions;
  39.     #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
  40.     private ?\DateTimeInterface $NotificationAt = null;
  41.     #[ORM\Column(length: 100, nullable: true)]
  42.     private ?string $NotificationRef = null;
  43.     #[ORM\Column(type: Types::TEXT, nullable: true)]
  44.     private ?string $NotificationMemo = null;
  45.     #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
  46.     private ?\DateTimeInterface $ExecutionAt = null;
  47.     #[ORM\Column(length: 100, nullable: true)]
  48.     private ?string $ExecutionRef = null;
  49.     #[ORM\Column(type: Types::TEXT, nullable: true)]
  50.     private ?string $ExecutionMemo = null;
  51.     #[ORM\Column(nullable: true)]
  52.     private ?int $FileStatus = null;
  53.     #[ORM\OneToMany(mappedBy: 'TheCase', targetEntity: CaseLogActions::class)]
  54.     private Collection $caseLogActions;
  55.     #[ORM\ManyToOne]
  56.     private ?LawOffice $LawOffice = null;
  57.     #[ORM\Column(nullable: true)]
  58.     private ?int $CaseSeq = null;
  59.     #[ORM\Column(nullable: true)]
  60.     private ?bool $IsDeleted = false;
  61.     #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
  62.     private ?\DateTimeInterface $DeleteAt = null;
  63.     #[ORM\ManyToOne]
  64.     private ?User $DeletedBy = null;
  65.     #[ORM\ManyToOne]
  66.     private ?User $LockedBy = null;
  67.     #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
  68.     private ?\DateTimeInterface $LockedAt = null;
  69.     #[ORM\Column(nullable: true)]
  70.     private ?bool $IsNotification = null;
  71.     #[ORM\Column(nullable: true)]
  72.     private ?bool $IsExecution = null;
  73.     #[ORM\Column(length: 40, nullable: true)]
  74.     private ?string $RefJudge = null;
  75.     #[ORM\Column(nullable: true)]
  76.     private ?bool $IsJudged = null;
  77.     #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
  78.     private ?\DateTimeInterface $JudgedAt = null;
  79.     #[ORM\ManyToOne]
  80.     private ?Juridiction $Juridiction = null;
  81.     #[ORM\Column(length: 255, nullable: true)]
  82.     private ?string $LawyerAdv = null;
  83.     #[ORM\OneToMany(mappedBy: 'TheCase', targetEntity: IncomeExpense::class)]
  84.     private Collection $incomeExpenses;
  85.     #[ORM\OneToMany(mappedBy: 'TheCase', targetEntity: Deposit::class)]
  86.     private Collection $deposits;
  87.     #[ORM\Column(length: 60, nullable: true)]
  88.     private ?string $JudgeFullName = null;
  89.     #[ORM\Column(length: 100, nullable: true)]
  90.     private ?string $Subject = null;
  91.     #[ORM\Column(nullable: true)]
  92.     private ?int $Parent = null;
  93.     public function __construct()
  94.     {
  95.         $this->Actions = new ArrayCollection();
  96.         $this->caseLogActions = new ArrayCollection();
  97.         $this->incomeExpenses = new ArrayCollection();
  98.         $this->deposits = new ArrayCollection();
  99.     }
  100.     public function getId(): ?int
  101.     {
  102.         return $this->id;
  103.     }
  104.     public function getCreatedAt(): ?\DateTimeInterface
  105.     {
  106.         return $this->CreatedAt;
  107.     }
  108.     public function setCreatedAt(?\DateTimeInterface $CreatedAt): self
  109.     {
  110.         $this->CreatedAt = $CreatedAt;
  111.         return $this;
  112.     }
  113.     public function getCreatedBy(): ?User
  114.     {
  115.         return $this->CreatedBy;
  116.     }
  117.     public function setCreatedBy(?User $CreatedBy): self
  118.     {
  119.         $this->CreatedBy = $CreatedBy;
  120.         return $this;
  121.     }
  122.     public function getUpdateAt(): ?\DateTimeInterface
  123.     {
  124.         return $this->UpdateAt;
  125.     }
  126.     public function setUpdateAt(?\DateTimeInterface $UpdateAt): self
  127.     {
  128.         $this->UpdateAt = $UpdateAt;
  129.         return $this;
  130.     }
  131.     public function getFullFileTpiNum(): ?string
  132.     {
  133.         return $this->FullFileTpiNum;
  134.     }
  135.     public function setFullFileTpiNum(?string $FullFileTpiNum): self
  136.     {
  137.         $this->FullFileTpiNum = $FullFileTpiNum;
  138.         return $this;
  139.     }
  140.     public function getRefLawOffice(): ?string
  141.     {
  142.         return $this->RefLawOffice;
  143.     }
  144.     public function setRefLawOffice(?string $RefLawOffice): self
  145.     {
  146.         $this->RefLawOffice = $RefLawOffice;
  147.         return $this;
  148.     }
  149.     public function getFullFileCANum(): ?string
  150.     {
  151.         return $this->FullFileCANum;
  152.     }
  153.     public function setFullFileCANum(?string $FullFileCANum): self
  154.     {
  155.         $this->FullFileCANum = $FullFileCANum;
  156.         return $this;
  157.     }
  158.     public function getCaseType(): ?CaseType
  159.     {
  160.         return $this->CaseType;
  161.     }
  162.     public function setCaseType(?CaseType $CaseType): self
  163.     {
  164.         $this->CaseType = $CaseType;
  165.         return $this;
  166.     }
  167.     public function getClient(): ?Client
  168.     {
  169.         return $this->Client;
  170.     }
  171.     public function setClient(?Client $Client): self
  172.     {
  173.         $this->Client = $Client;
  174.         return $this;
  175.     }
  176.     public function getOpponentName(): ?string
  177.     {
  178.         return $this->OpponentName;
  179.     }
  180.     public function setOpponentName(?string $OpponentName): self
  181.     {
  182.         $this->OpponentName = $OpponentName;
  183.         return $this;
  184.     }
  185.     public function getOpenedAt(): ?\DateTimeInterface
  186.     {
  187.         return $this->OpenedAt;
  188.     }
  189.     public function setOpenedAt(?\DateTimeInterface $OpenedAt): self
  190.     {
  191.         $this->OpenedAt = $OpenedAt;
  192.         return $this;
  193.     }
  194.     /**
  195.      * @return Collection<int, TheCaseActions>
  196.      */
  197.     public function getActions(): Collection
  198.     {
  199.         return $this->Actions;
  200.     }
  201.     public function addAction(TheCaseActions $action): self
  202.     {
  203.         if (!$this->Actions->contains($action)) {
  204.             $this->Actions->add($action);
  205.             $action->setTheCase($this);
  206.         }
  207.         return $this;
  208.     }
  209.     public function removeAction(TheCaseActions $action): self
  210.     {
  211.         if ($this->Actions->removeElement($action)) {
  212.             // set the owning side to null (unless already changed)
  213.             if ($action->getTheCase() === $this) {
  214.                 $action->setTheCase(null);
  215.             }
  216.         }
  217.         return $this;
  218.     }
  219.     public function getNotificationAt(): ?\DateTimeInterface
  220.     {
  221.         return $this->NotificationAt;
  222.     }
  223.     public function setNotificationAt(?\DateTimeInterface $NotificationAt): self
  224.     {
  225.         $this->NotificationAt = $NotificationAt;
  226.         return $this;
  227.     }
  228.     public function getNotificationRef(): ?string
  229.     {
  230.         return $this->NotificationRef;
  231.     }
  232.     public function setNotificationRef(?string $NotificationRef): self
  233.     {
  234.         $this->NotificationRef = $NotificationRef;
  235.         return $this;
  236.     }
  237.     public function getNotificationMemo(): ?string
  238.     {
  239.         return $this->NotificationMemo;
  240.     }
  241.     public function setNotificationMemo(?string $NotificationMemo): self
  242.     {
  243.         $this->NotificationMemo = $NotificationMemo;
  244.         return $this;
  245.     }
  246.     public function getExecutionAt(): ?\DateTimeInterface
  247.     {
  248.         return $this->ExecutionAt;
  249.     }
  250.     public function setExecutionAt(?\DateTimeInterface $ExecutionAt): self
  251.     {
  252.         $this->ExecutionAt = $ExecutionAt;
  253.         return $this;
  254.     }
  255.     public function getExecutionRef(): ?string
  256.     {
  257.         return $this->ExecutionRef;
  258.     }
  259.     public function setExecutionRef(?string $ExecutionRef): self
  260.     {
  261.         $this->ExecutionRef = $ExecutionRef;
  262.         return $this;
  263.     }
  264.     public function getExecutionMemo(): ?string
  265.     {
  266.         return $this->ExecutionMemo;
  267.     }
  268.     public function setExecutionMemo(?string $ExecutionMemo): self
  269.     {
  270.         $this->ExecutionMemo = $ExecutionMemo;
  271.         return $this;
  272.     }
  273.     public function getFileStatus(): ?int
  274.     {
  275.         return $this->FileStatus;
  276.     }
  277.     public function setFileStatus(?int $FileStatus): self
  278.     {
  279.         $this->FileStatus = $FileStatus;
  280.         return $this;
  281.     }
  282.     /**
  283.      * @return Collection<int, CaseLogActions>
  284.      */
  285.     public function getCaseLogActions(): Collection
  286.     {
  287.         return $this->caseLogActions;
  288.     }
  289.     public function addCaseLogAction(CaseLogActions $caseLogAction): self
  290.     {
  291.         if (!$this->caseLogActions->contains($caseLogAction)) {
  292.             $this->caseLogActions->add($caseLogAction);
  293.             $caseLogAction->setTheCase($this);
  294.         }
  295.         return $this;
  296.     }
  297.     public function removeCaseLogAction(CaseLogActions $caseLogAction): self
  298.     {
  299.         if ($this->caseLogActions->removeElement($caseLogAction)) {
  300.             // set the owning side to null (unless already changed)
  301.             if ($caseLogAction->getTheCase() === $this) {
  302.                 $caseLogAction->setTheCase(null);
  303.             }
  304.         }
  305.         return $this;
  306.     }
  307.     public function getLawOffice(): ?LawOffice
  308.     {
  309.         return $this->LawOffice;
  310.     }
  311.     public function setLawOffice(?LawOffice $LawOffice): self
  312.     {
  313.         $this->LawOffice = $LawOffice;
  314.         return $this;
  315.     }
  316.     public function getCaseSeq(): ?int
  317.     {
  318.         return $this->CaseSeq;
  319.     }
  320.     public function setCaseSeq(?int $CaseSeq): self
  321.     {
  322.         $this->CaseSeq = $CaseSeq;
  323.         return $this;
  324.     }
  325.     public function isIsDeleted(): ?bool
  326.     {
  327.         return $this->IsDeleted;
  328.     }
  329.     public function setIsDeleted(?bool $IsDeleted): self
  330.     {
  331.         $this->IsDeleted = $IsDeleted;
  332.         return $this;
  333.     }
  334.     public function getDeleteAt(): ?\DateTimeInterface
  335.     {
  336.         return $this->DeleteAt;
  337.     }
  338.     public function setDeleteAt(?\DateTimeInterface $DeleteAt): self
  339.     {
  340.         $this->DeleteAt = $DeleteAt;
  341.         return $this;
  342.     }
  343.     public function getDeletedBy(): ?User
  344.     {
  345.         return $this->DeletedBy;
  346.     }
  347.     public function setDeletedBy(?User $DeletedBy): self
  348.     {
  349.         $this->DeletedBy = $DeletedBy;
  350.         return $this;
  351.     }
  352.     public function getLockedBy(): ?User
  353.     {
  354.         return $this->LockedBy;
  355.     }
  356.     public function setLockedBy(?User $LockedBy): self
  357.     {
  358.         $this->LockedBy = $LockedBy;
  359.         return $this;
  360.     }
  361.     public function getLockedAt(): ?\DateTimeInterface
  362.     {
  363.         return $this->LockedAt;
  364.     }
  365.     public function setLockedAt(?\DateTimeInterface $LockedAt): self
  366.     {
  367.         $this->LockedAt = $LockedAt;
  368.         return $this;
  369.     }
  370.     public function isIsNotification(): ?bool
  371.     {
  372.         return $this->IsNotification;
  373.     }
  374.     public function setIsNotification(?bool $IsNotification): self
  375.     {
  376.         $this->IsNotification = $IsNotification;
  377.         return $this;
  378.     }
  379.     public function isIsExecution(): ?bool
  380.     {
  381.         return $this->IsExecution;
  382.     }
  383.     public function setIsExecution(?bool $IsExecution): self
  384.     {
  385.         $this->IsExecution = $IsExecution;
  386.         return $this;
  387.     }
  388.     public function getRefJudge(): ?string
  389.     {
  390.         return $this->RefJudge;
  391.     }
  392.     public function setRefJudge(?string $RefJudge): self
  393.     {
  394.         $this->RefJudge = $RefJudge;
  395.         return $this;
  396.     }
  397.     public function isIsJudged(): ?bool
  398.     {
  399.         return $this->IsJudged;
  400.     }
  401.     public function setIsJudged(?bool $IsJudged): self
  402.     {
  403.         $this->IsJudged = $IsJudged;
  404.         return $this;
  405.     }
  406.     public function getJudgedAt(): ?\DateTimeInterface
  407.     {
  408.         return $this->JudgedAt;
  409.     }
  410.     public function setJudgedAt(?\DateTimeInterface $JudgedAt): self
  411.     {
  412.         $this->JudgedAt = $JudgedAt;
  413.         return $this;
  414.     }
  415.     public function getJuridiction(): ?Juridiction
  416.     {
  417.         return $this->Juridiction;
  418.     }
  419.     public function setJuridiction(?Juridiction $Juridiction): self
  420.     {
  421.         $this->Juridiction = $Juridiction;
  422.         return $this;
  423.     }
  424.     public function getLawyerAdv(): ?string
  425.     {
  426.         return $this->LawyerAdv;
  427.     }
  428.     public function setLawyerAdv(?string $LawyerAdv): self
  429.     {
  430.         $this->LawyerAdv = $LawyerAdv;
  431.         return $this;
  432.     }
  433.     /**
  434.      * @return Collection<int, IncomeExpense>
  435.      */
  436.     public function getIncomeExpenses(): Collection
  437.     {
  438.         return $this->incomeExpenses;
  439.     }
  440.     public function addIncomeExpense(IncomeExpense $incomeExpense): self
  441.     {
  442.         if (!$this->incomeExpenses->contains($incomeExpense)) {
  443.             $this->incomeExpenses->add($incomeExpense);
  444.             $incomeExpense->setTheCase($this);
  445.         }
  446.         return $this;
  447.     }
  448.     public function removeIncomeExpense(IncomeExpense $incomeExpense): self
  449.     {
  450.         if ($this->incomeExpenses->removeElement($incomeExpense)) {
  451.             // set the owning side to null (unless already changed)
  452.             if ($incomeExpense->getTheCase() === $this) {
  453.                 $incomeExpense->setTheCase(null);
  454.             }
  455.         }
  456.         return $this;
  457.     }
  458.     /**
  459.      * @return Collection<int, Deposit>
  460.      */
  461.     public function getDeposits(): Collection
  462.     {
  463.         return $this->deposits;
  464.     }
  465.     public function addDeposit(Deposit $deposit): self
  466.     {
  467.         if (!$this->deposits->contains($deposit)) {
  468.             $this->deposits->add($deposit);
  469.             $deposit->setTheCase($this);
  470.         }
  471.         return $this;
  472.     }
  473.     public function removeDeposit(Deposit $deposit): self
  474.     {
  475.         if ($this->deposits->removeElement($deposit)) {
  476.             // set the owning side to null (unless already changed)
  477.             if ($deposit->getTheCase() === $this) {
  478.                 $deposit->setTheCase(null);
  479.             }
  480.         }
  481.         return $this;
  482.     }
  483.     public function getJudgeFullName(): ?string
  484.     {
  485.         return $this->JudgeFullName;
  486.     }
  487.     public function setJudgeFullName(?string $JudgeFullName): self
  488.     {
  489.         $this->JudgeFullName = $JudgeFullName;
  490.         return $this;
  491.     }
  492.     public function getSubject(): ?string
  493.     {
  494.         return $this->Subject;
  495.     }
  496.     public function setSubject(?string $Subject): self
  497.     {
  498.         $this->Subject = $Subject;
  499.         return $this;
  500.     }
  501.     public function getParent(): ?int
  502.     {
  503.         return $this->Parent;
  504.     }
  505.     public function setParent(?int $Parent): static
  506.     {
  507.         $this->Parent = $Parent;
  508.         return $this;
  509.     }
  510. }