src/Entity/IncomeExpense.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\IncomeExpenseRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClass: IncomeExpenseRepository::class)]
  7. class IncomeExpense
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id = null;
  13.     #[ORM\Column(length: 8, nullable: true)]
  14.     private ?string $Category = null;
  15.     #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
  16.     private ?\DateTimeInterface $CreatedAt = null;
  17.     #[ORM\ManyToOne]
  18.     private ?User $CreatedBy = null;
  19.     #[ORM\ManyToOne]
  20.     private ?LawOffice $LawOffice = null;
  21.     #[ORM\Column(type: Types::DECIMAL, precision: 10, scale: '0', nullable: true)]
  22.     private ?string $Amount = null;
  23.     #[ORM\Column(nullable: true)]
  24.     private ?int $Source = null;
  25.     #[ORM\Column(type: Types::TEXT, nullable: true)]
  26.     private ?string $Comments = null;
  27.     #[ORM\ManyToOne(inversedBy: 'incomeExpenses')]
  28.     private ?TheCase $TheCase = null;
  29.     public function getId(): ?int
  30.     {
  31.         return $this->id;
  32.     }
  33.     public function getCategory(): ?string
  34.     {
  35.         return $this->Category;
  36.     }
  37.     public function setCategory(?string $Category): self
  38.     {
  39.         $this->Category = $Category;
  40.         return $this;
  41.     }
  42.     public function getCreatedAt(): ?\DateTimeInterface
  43.     {
  44.         return $this->CreatedAt;
  45.     }
  46.     public function setCreatedAt(?\DateTimeInterface $CreatedAt): self
  47.     {
  48.         $this->CreatedAt = $CreatedAt;
  49.         return $this;
  50.     }
  51.     public function getCreatedBy(): ?User
  52.     {
  53.         return $this->CreatedBy;
  54.     }
  55.     public function setCreatedBy(?User $CreatedBy): self
  56.     {
  57.         $this->CreatedBy = $CreatedBy;
  58.         return $this;
  59.     }
  60.     public function getLawOffice(): ?LawOffice
  61.     {
  62.         return $this->LawOffice;
  63.     }
  64.     public function setLawOffice(?LawOffice $LawOffice): self
  65.     {
  66.         $this->LawOffice = $LawOffice;
  67.         return $this;
  68.     }
  69.     public function getAmount(): ?string
  70.     {
  71.         return $this->Amount;
  72.     }
  73.     public function setAmount(?string $Amount): self
  74.     {
  75.         $this->Amount = $Amount;
  76.         return $this;
  77.     }
  78.     public function getSource(): ?int
  79.     {
  80.         return $this->Source;
  81.     }
  82.     public function setSource(?int $Source): self
  83.     {
  84.         $this->Source = $Source;
  85.         return $this;
  86.     }
  87.     public function getComments(): ?string
  88.     {
  89.         return $this->Comments;
  90.     }
  91.     public function setComments(?string $Comments): self
  92.     {
  93.         $this->Comments = $Comments;
  94.         return $this;
  95.     }
  96.     public function getTheCase(): ?TheCase
  97.     {
  98.         return $this->TheCase;
  99.     }
  100.     public function setTheCase(?TheCase $TheCase): self
  101.     {
  102.         $this->TheCase = $TheCase;
  103.         return $this;
  104.     }
  105. }