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({
  16.      *     "project.expenses",
  17.      *
  18.      *     "project_expense@core",
  19.      *
  20.      * })
  21.      */
  22.     private $id;
  23.     /**
  24.      * @ORM\ManyToOne(targetEntity=Projects::class, inversedBy="projectExpenses")
  25.      * @ORM\JoinColumn(nullable=false, onDelete="CASCADE")
  26.      */
  27.     private $project;
  28.     /**
  29.      * @ORM\Column(type="string", length=64, nullable=true)
  30.      * @Groups({
  31.      *     "project.expenses",
  32.      *     "project_expense@core",
  33.      * })
  34.      */
  35.     private $status;
  36.     /**
  37.      * @ORM\Column(type="string", length=64, nullable=true)
  38.      * @Groups({
  39.      *     "project.expenses",
  40.      *     "project_expense@core"
  41.      * })
  42.      */
  43.     private $receipt_nr;
  44.     /**
  45.      * @ORM\Column(type="string", length=64, nullable=true)
  46.      * @Groups({
  47.      *     "project.expenses",
  48.      *     "project_expense@core"
  49.      * })
  50.      */
  51.     private $invoice_nr;
  52.     /**
  53.      * @ORM\Column(type="datetime_immutable", nullable=true)
  54.      * @Groups({
  55.      *     "project.expenses",
  56.      *     "project_expense@core"
  57.      * })
  58.      */
  59.     private $receipt_at;
  60.     /**
  61.      * @ORM\Column(type="string", length=255, nullable=true)
  62.      * @Groups({
  63.      *     "project.expenses",
  64.      *     "project_expense@core"
  65.      * })
  66.      */
  67.     private $payment_status;
  68.     /**
  69.      * @ORM\Column(type="string", length=255, nullable=true)
  70.      * @Groups({
  71.      *     "project.expenses",
  72.      *     "project_expense@core"
  73.      * })
  74.      */
  75.     private $company_name;
  76.     /**
  77.      * @ORM\Column(type="string", length=64, nullable=true)
  78.      * @Groups({
  79.      *     "project.expenses",
  80.      *     "project_expense@core"
  81.      * })
  82.      */
  83.     private $payment_method;
  84.     /**
  85.      * @ORM\Column(type="datetime_immutable", nullable=true)
  86.      * @Groups({
  87.      *     "project.expenses",
  88.      *     "project_expense@core"
  89.      * })
  90.      */
  91.     private $due_at;
  92.     /**
  93.      * @ORM\Column(type="float", nullable=true)
  94.      * @Groups({
  95.      *     "project.expenses",
  96.      *     "project_expense@core"
  97.      * })
  98.      */
  99.     private $total_amount;
  100.     /**
  101.      * @ORM\Column(type="float", nullable=true)
  102.      * @Groups({
  103.      *     "project.expenses",
  104.      *     "project_expense@core"
  105.      * })
  106.      */
  107.     private $outstanding_balance;
  108.     /**
  109.      * @ORM\Column(type="string", length=255, nullable=true)
  110.      * @Groups({
  111.      *     "project.expenses",
  112.      *     "project_expense@core"
  113.      * })
  114.      */
  115.     private $category;
  116.     /**
  117.      * @ORM\Column(type="boolean", nullable=true)
  118.      * @Groups({
  119.      *     "project.expenses",
  120.      *     "project_expense@core"
  121.      * })
  122.      */
  123.     private $open_transfer;
  124.     /**
  125.      * @ORM\Column(type="datetime_immutable", nullable=true)
  126.      * @Groups({
  127.      *     "project.expenses",
  128.      *     "project_expense@core"
  129.      * })
  130.      */
  131.     private $paid_at;
  132.     public function getId(): ?int
  133.     {
  134.         return $this->id;
  135.     }
  136.     public function getProject(): ?Projects
  137.     {
  138.         return $this->project;
  139.     }
  140.     public function setProject(?Projects $project): self
  141.     {
  142.         $this->project $project;
  143.         return $this;
  144.     }
  145.     public function getStatus(): ?string
  146.     {
  147.         return $this->status;
  148.     }
  149.     public function setStatus(?string $status): self
  150.     {
  151.         $this->status $status;
  152.         return $this;
  153.     }
  154.     public function getReceiptNr(): ?string
  155.     {
  156.         return $this->receipt_nr;
  157.     }
  158.     public function setReceiptNr(string $receipt_nr): self
  159.     {
  160.         $this->receipt_nr $receipt_nr;
  161.         return $this;
  162.     }
  163.     public function getInvoiceNr(): ?string
  164.     {
  165.         return $this->invoice_nr;
  166.     }
  167.     public function setInvoiceNr(string $invoice_nr): self
  168.     {
  169.         $this->invoice_nr $invoice_nr;
  170.         return $this;
  171.     }
  172.     public function getReceiptAt(): ?\DateTimeImmutable
  173.     {
  174.         return $this->receipt_at;
  175.     }
  176.     public function setReceiptAt(?\DateTimeImmutable $receipt_at): self
  177.     {
  178.         $this->receipt_at $receipt_at;
  179.         return $this;
  180.     }
  181.     public function getPaymentStatus(): ?string
  182.     {
  183.         return $this->payment_status;
  184.     }
  185.     public function setPaymentStatus(?string $payment_status): self
  186.     {
  187.         $this->payment_status $payment_status;
  188.         return $this;
  189.     }
  190.     public function getCompanyName(): ?string
  191.     {
  192.         return $this->company_name;
  193.     }
  194.     public function setCompanyName(?string $company_name): self
  195.     {
  196.         $this->company_name $company_name;
  197.         return $this;
  198.     }
  199.     public function getPaymentMethod(): ?string
  200.     {
  201.         return $this->payment_method;
  202.     }
  203.     public function setPaymentMethod(?string $payment_method): self
  204.     {
  205.         $this->payment_method $payment_method;
  206.         return $this;
  207.     }
  208.     public function getDueAt(): ?\DateTimeImmutable
  209.     {
  210.         return $this->due_at;
  211.     }
  212.     public function setDueAt(?\DateTimeImmutable $due_at): self
  213.     {
  214.         $this->due_at $due_at;
  215.         return $this;
  216.     }
  217.     public function getTotalAmount(): ?float
  218.     {
  219.         return $this->total_amount;
  220.     }
  221.     public function setTotalAmount(?float $total_amount): self
  222.     {
  223.         $this->total_amount $total_amount;
  224.         return $this;
  225.     }
  226.     public function getOutstandingBalance(): ?float
  227.     {
  228.         return $this->outstanding_balance;
  229.     }
  230.     public function setOutstandingBalance(?float $outstanding_balance): self
  231.     {
  232.         $this->outstanding_balance $outstanding_balance;
  233.         return $this;
  234.     }
  235.     public function getCategory(): ?string
  236.     {
  237.         return $this->category;
  238.     }
  239.     public function setCategory(?string $category): self
  240.     {
  241.         $this->category $category;
  242.         return $this;
  243.     }
  244.     public function getOpenTransfer(): ?bool
  245.     {
  246.         return $this->open_transfer;
  247.     }
  248.     public function setOpenTransfer(?bool $open_transfer): self
  249.     {
  250.         $this->open_transfer $open_transfer;
  251.         return $this;
  252.     }
  253.     public function getPaidAt(): ?\DateTimeImmutable
  254.     {
  255.         return $this->paid_at;
  256.     }
  257.     public function setPaidAt(\DateTimeImmutable $paid_at): self
  258.     {
  259.         $this->paid_at $paid_at;
  260.         return $this;
  261.     }
  262. }