src/Entity/ProjectOrderExtraCosts.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProjectOrderExtraCostsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. /**
  7.  * @deprecated use ProjectOrderExpenses
  8.  * @ORM\Entity(repositoryClass=ProjectOrderExtraCostsRepository::class)
  9.  */
  10. class ProjectOrderExtraCosts
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      * @Groups({
  17.      *          "project.details.orders",
  18.      *          "order.detail"
  19.      *     })
  20.      */
  21.     private $id;
  22.     /**
  23.      * @ORM\Column(type="string", length=64, nullable=true)
  24.      * @Groups({
  25.      *          "project.details.orders",
  26.      *          "order.detail"
  27.      *     })
  28.      */
  29.     private $invoice_nr;
  30.     /**
  31.      * @ORM\Column(type="datetime_immutable", nullable=true)
  32.      * @Groups({
  33.      *          "project.details.orders",
  34.      *          "order.detail"
  35.      *     })
  36.      */
  37.     private $created_at;
  38.     /**
  39.      * @ORM\Column(type="float", nullable=true)
  40.      * @Groups({
  41.      *          "project.details.orders",
  42.      *          "order.detail"
  43.      *     })
  44.      */
  45.     private $amount;
  46.     /**
  47.      * @ORM\ManyToOne(targetEntity=Suppliers::class, inversedBy="projectOrderExtraCosts")
  48.      * @Groups({
  49.      *          "project.details.orders",
  50.      *          "order.detail"
  51.      *     })
  52.      */
  53.     private $supplier;
  54.     /**
  55.      * @ORM\ManyToOne(targetEntity=ProjectOrders::class, inversedBy="projectOrderExtraCosts")
  56.      * @ORM\JoinColumn(onDelete="CASCADE")
  57.      */
  58.     private $project_order;
  59.     public function getId(): ?int
  60.     {
  61.         return $this->id;
  62.     }
  63.     public function getInvoiceNr(): ?string
  64.     {
  65.         return $this->invoice_nr;
  66.     }
  67.     public function setInvoiceNr(?string $invoice_nr): self
  68.     {
  69.         $this->invoice_nr $invoice_nr;
  70.         return $this;
  71.     }
  72.     public function getCreatedAt(): ?\DateTimeImmutable
  73.     {
  74.         return $this->created_at;
  75.     }
  76.     public function setCreatedAt(?\DateTimeImmutable $created_at): self
  77.     {
  78.         $this->created_at $created_at;
  79.         return $this;
  80.     }
  81.     public function getAmount(): ?float
  82.     {
  83.         return $this->amount;
  84.     }
  85.     public function setAmount(?float $amount): self
  86.     {
  87.         $this->amount $amount;
  88.         return $this;
  89.     }
  90.     public function getSupplier(): ?Suppliers
  91.     {
  92.         return $this->supplier;
  93.     }
  94.     public function setSupplier(?Suppliers $supplier): self
  95.     {
  96.         $this->supplier $supplier;
  97.         return $this;
  98.     }
  99.     public function getProjectOrder(): ?ProjectOrders
  100.     {
  101.         return $this->project_order;
  102.     }
  103.     public function setProjectOrder(?ProjectOrders $project_order): self
  104.     {
  105.         $this->project_order $project_order;
  106.         return $this;
  107.     }
  108. }