src/Entity/Fluid.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FluidRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Symfony\Component\Serializer\Annotation\Groups;
  8. /**
  9.  * @ORM\Entity(repositoryClass=FluidRepository::class)
  10.  */
  11. class Fluid
  12. {
  13.     /**
  14.      * @ORM\Id
  15.      * @ORM\GeneratedValue
  16.      * @ORM\Column(type="integer")
  17.      */
  18.     private $id;
  19.     /**
  20.      * @ORM\Column(type="integer")
  21.      * @Groups({"fluid_edit"})
  22.      */
  23.     private $containerId;
  24.     /**
  25.      * @ORM\Column(type="string", length=255)
  26.      * @Groups({"fluid_edit"})
  27.      */
  28.     private $type;
  29.     /**
  30.      * @ORM\Column(type="decimal", precision=5, scale=2, nullable=true)
  31.      * @Groups({"fluid_edit"})
  32.      */
  33.     private $quantity;
  34.     /**
  35.      * @ORM\Column(type="string", length=255, nullable=true)
  36.      * @Groups({"fluid_edit"})
  37.      */
  38.     private $status;
  39.     /**
  40.      * @ORM\OneToOne(targetEntity=Installation::class, inversedBy="fluid")
  41.      * @Groups({"fluid_edit"})
  42.      */
  43.     private $installation;
  44.     /**
  45.      * @ORM\ManyToOne(targetEntity=Technician::class, inversedBy="fluids")
  46.      * @Groups({"fluid_edit"})
  47.      */
  48.     private $technician;
  49.     public function getId(): ?int
  50.     {
  51.         return $this->id;
  52.     }
  53.     public function getContainerId(): ?int
  54.     {
  55.         return $this->containerId;
  56.     }
  57.     public function setContainerId(int $containerId): self
  58.     {
  59.         $this->containerId $containerId;
  60.         return $this;
  61.     }
  62.     public function getType(): ?string
  63.     {
  64.         return $this->type;
  65.     }
  66.     public function setType(string $type): self
  67.     {
  68.         $this->type $type;
  69.         return $this;
  70.     }
  71.     public function getQuantity(): ?string
  72.     {
  73.         return $this->quantity;
  74.     }
  75.     public function setQuantity(?string $quantity): self
  76.     {
  77.         $this->quantity $quantity;
  78.         return $this;
  79.     }
  80.     public function getStatus(): ?string
  81.     {
  82.         return $this->status;
  83.     }
  84.     public function setStatus(?string $status): self
  85.     {
  86.         $this->status $status;
  87.         return $this;
  88.     }
  89.     public function getTechnician(): ?Technician
  90.     {
  91.         return $this->technician;
  92.     }
  93.     public function setTechnician(?Technician $technician): self
  94.     {
  95.         $this->technician $technician;
  96.         return $this;
  97.     }
  98.     public function getInstallation(): ?Installation
  99.     {
  100.         return $this->installation;
  101.     }
  102.     public function setInstallation(?Installation $installation): self
  103.     {
  104.         $this->installation $installation;
  105.         return $this;
  106.     }
  107. }