src/Flexy/ShopBundle/Entity/Shipping/Vehicle/DisplayControl.php line 13

  1. <?php
  2. namespace App\Flexy\ShopBundle\Entity\Shipping\Vehicle;
  3. use ApiPlatform\Metadata\ApiResource;
  4. use App\Flexy\ShopBundle\Entity\Accounting\PayableInvoice;
  5. use App\Repository\Flexy\ShopBundle\Entity\Shipping\Vehicle\DisplayControlRepository;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassDisplayControlRepository::class)]
  9. #[ApiResource]
  10. class DisplayControl
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  17.     private ?\DateTimeInterface $changeAt null;
  18.     #[ORM\Column(nullabletrue)]
  19.     private ?float $counterKm null;
  20.     #[ORM\Column(length255nullabletrue)]
  21.     private ?string $opticalSelection null;
  22.     #[ORM\Column(length255nullabletrue)]
  23.     private ?string $bulbSelection null;
  24.     #[ORM\ManyToOne(inversedBy'displayControls')]
  25.     private ?ShippingVehicle $shippingVehicle null;
  26.     #[ORM\OneToOne(cascade: ['persist''remove'])]
  27.     private ?PayableInvoice $accessoriesPayableInvoice null;
  28.     #[ORM\OneToOne(cascade: ['persist''remove'])]
  29.     private ?PayableInvoice $workmanshipPayableInvoice null;
  30.     public function getId(): ?int
  31.     {
  32.         return $this->id;
  33.     }
  34.     public function getChangeAt(): ?\DateTimeInterface
  35.     {
  36.         return $this->changeAt;
  37.     }
  38.     public function setChangeAt(?\DateTimeInterface $changeAt): self
  39.     {
  40.         $this->changeAt $changeAt;
  41.         return $this;
  42.     }
  43.     public function getCounterKm(): ?float
  44.     {
  45.         return $this->counterKm;
  46.     }
  47.     public function setCounterKm(?float $counterKm): self
  48.     {
  49.         $this->counterKm $counterKm;
  50.         return $this;
  51.     }
  52.     public function getOpticalSelection(): ?string
  53.     {
  54.         return $this->opticalSelection;
  55.     }
  56.     public function setOpticalSelection(?string $opticalSelection): self
  57.     {
  58.         $this->opticalSelection $opticalSelection;
  59.         return $this;
  60.     }
  61.     public function getBulbSelection(): ?string
  62.     {
  63.         return $this->bulbSelection;
  64.     }
  65.     public function setBulbSelection(?string $bulbSelection): self
  66.     {
  67.         $this->bulbSelection $bulbSelection;
  68.         return $this;
  69.     }
  70.     public function getShippingVehicle(): ?ShippingVehicle
  71.     {
  72.         return $this->shippingVehicle;
  73.     }
  74.     public function setShippingVehicle(?ShippingVehicle $shippingVehicle): self
  75.     {
  76.         $this->shippingVehicle $shippingVehicle;
  77.         return $this;
  78.     }
  79.     public function getAccessoriesPayableInvoice(): ?PayableInvoice
  80.     {
  81.         return $this->accessoriesPayableInvoice;
  82.     }
  83.     public function setAccessoriesPayableInvoice(?PayableInvoice $accessoriesPayableInvoice): self
  84.     {
  85.         $this->accessoriesPayableInvoice $accessoriesPayableInvoice;
  86.         return $this;
  87.     }
  88.     public function getWorkmanshipPayableInvoice(): ?PayableInvoice
  89.     {
  90.         return $this->workmanshipPayableInvoice;
  91.     }
  92.     public function setWorkmanshipPayableInvoice(?PayableInvoice $workmanshipPayableInvoice): self
  93.     {
  94.         $this->workmanshipPayableInvoice $workmanshipPayableInvoice;
  95.         return $this;
  96.     }
  97. }