src/Entity/ProjectExpense.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProjectExpenseRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. /**
  7.  * @ORM\Entity(repositoryClass=ProjectExpenseRepository::class)
  8.  */
  9. class ProjectExpense
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      * @Groups({"project.expenses"})
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\ManyToOne(targetEntity=Projects::class, inversedBy="projectExpenses")
  20.      * @ORM\JoinColumn(nullable=false, onDelete="CASCADE")
  21.      */
  22.     private $project;
  23.     /**
  24.      * @ORM\Column(type="string", length=64, nullable=true)
  25.      * @Groups({"project.expenses"})
  26.      */
  27.     private $status;
  28.     /**
  29.      * @ORM\Column(type="string", length=64, nullable=true)
  30.      * @Groups({"project.expenses"})
  31.      */
  32.     private $receipt_nr;
  33.     /**
  34.      * @ORM\Column(type="string", length=64, nullable=true)
  35.      * @Groups({"project.expenses"})
  36.      */
  37.     private $invoice_nr;
  38.     /**
  39.      * @ORM\Column(type="datetime_immutable", nullable=true)
  40.      * @Groups({"project.expenses"})
  41.      */
  42.     private $receipt_at;
  43.     /**
  44.      * @ORM\Column(type="string", length=255, nullable=true)
  45.      * @Groups({"project.expenses"})
  46.      */
  47.     private $payment_status;
  48.     /**
  49.      * @ORM\Column(type="string", length=255, nullable=true)
  50.      * @Groups({"project.expenses"})
  51.      */
  52.     private $company_name;
  53.     /**
  54.      * @ORM\Column(type="string", length=64, nullable=true)
  55.      * @Groups({"project.expenses"})
  56.      */
  57.     private $payment_method;
  58.     /**
  59.      * @ORM\Column(type="datetime_immutable", nullable=true)
  60.      * @Groups({"project.expenses"})
  61.      */
  62.     private $due_at;
  63.     /**
  64.      * @ORM\Column(type="float", nullable=true)
  65.      * @Groups({"project.expenses"})
  66.      */
  67.     private $total_amount;
  68.     /**
  69.      * @ORM\Column(type="float", nullable=true)
  70.      * @Groups({"project.expenses"})
  71.      */
  72.     private $outstanding_balance;
  73.     /**
  74.      * @ORM\Column(type="string", length=255, nullable=true)
  75.      * @Groups({"project.expenses"})
  76.      */
  77.     private $category;
  78.     /**
  79.      * @ORM\Column(type="boolean", nullable=true)
  80.      * @Groups({"project.expenses"})
  81.      */
  82.     private $open_transfer;
  83.     /**
  84.      * @ORM\Column(type="datetime_immutable", nullable=true)
  85.      * @Groups({"project.expenses"})
  86.      */
  87.     private $paid_at;
  88.     public function getId(): ?int
  89.     {
  90.         return $this->id;
  91.     }
  92.     public function getProject(): ?Projects
  93.     {
  94.         return $this->project;
  95.     }
  96.     public function setProject(?Projects $project): self
  97.     {
  98.         $this->project $project;
  99.         return $this;
  100.     }
  101.     public function getStatus(): ?string
  102.     {
  103.         return $this->status;
  104.     }
  105.     public function setStatus(?string $status): self
  106.     {
  107.         $this->status $status;
  108.         return $this;
  109.     }
  110.     public function getReceiptNr(): ?string
  111.     {
  112.         return $this->receipt_nr;
  113.     }
  114.     public function setReceiptNr(string $receipt_nr): self
  115.     {
  116.         $this->receipt_nr $receipt_nr;
  117.         return $this;
  118.     }
  119.     public function getInvoiceNr(): ?string
  120.     {
  121.         return $this->invoice_nr;
  122.     }
  123.     public function setInvoiceNr(string $invoice_nr): self
  124.     {
  125.         $this->invoice_nr $invoice_nr;
  126.         return $this;
  127.     }
  128.     public function getReceiptAt(): ?\DateTimeImmutable
  129.     {
  130.         return $this->receipt_at;
  131.     }
  132.     public function setReceiptAt(?\DateTimeImmutable $receipt_at): self
  133.     {
  134.         $this->receipt_at $receipt_at;
  135.         return $this;
  136.     }
  137.     public function getPaymentStatus(): ?string
  138.     {
  139.         return $this->payment_status;
  140.     }
  141.     public function setPaymentStatus(?string $payment_status): self
  142.     {
  143.         $this->payment_status $payment_status;
  144.         return $this;
  145.     }
  146.     public function getCompanyName(): ?string
  147.     {
  148.         return $this->company_name;
  149.     }
  150.     public function setCompanyName(?string $company_name): self
  151.     {
  152.         $this->company_name $company_name;
  153.         return $this;
  154.     }
  155.     public function getPaymentMethod(): ?string
  156.     {
  157.         return $this->payment_method;
  158.     }
  159.     public function setPaymentMethod(?string $payment_method): self
  160.     {
  161.         $this->payment_method $payment_method;
  162.         return $this;
  163.     }
  164.     public function getDueAt(): ?\DateTimeImmutable
  165.     {
  166.         return $this->due_at;
  167.     }
  168.     public function setDueAt(?\DateTimeImmutable $due_at): self
  169.     {
  170.         $this->due_at $due_at;
  171.         return $this;
  172.     }
  173.     public function getTotalAmount(): ?float
  174.     {
  175.         return $this->total_amount;
  176.     }
  177.     public function setTotalAmount(?float $total_amount): self
  178.     {
  179.         $this->total_amount $total_amount;
  180.         return $this;
  181.     }
  182.     public function getOutstandingBalance(): ?float
  183.     {
  184.         return $this->outstanding_balance;
  185.     }
  186.     public function setOutstandingBalance(?float $outstanding_balance): self
  187.     {
  188.         $this->outstanding_balance $outstanding_balance;
  189.         return $this;
  190.     }
  191.     public function getCategory(): ?string
  192.     {
  193.         return $this->category;
  194.     }
  195.     public function setCategory(?string $category): self
  196.     {
  197.         $this->category $category;
  198.         return $this;
  199.     }
  200.     public function getOpenTransfer(): ?bool
  201.     {
  202.         return $this->open_transfer;
  203.     }
  204.     public function setOpenTransfer(?bool $open_transfer): self
  205.     {
  206.         $this->open_transfer $open_transfer;
  207.         return $this;
  208.     }
  209.     public function getPaidAt(): ?\DateTimeImmutable
  210.     {
  211.         return $this->paid_at;
  212.     }
  213.     public function setPaidAt(\DateTimeImmutable $paid_at): self
  214.     {
  215.         $this->paid_at $paid_at;
  216.         return $this;
  217.     }
  218. }