src/Flexy/ShopBundle/Entity/Shipping/Vehicle/PowerControl.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\PowerControlRepository;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassPowerControlRepository::class)]
  9. #[ApiResource]
  10. class PowerControl
  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 $accessoriesSelection null;
  22.     #[ORM\ManyToOne(inversedBy'powerControls')]
  23.     private ?ShippingVehicle $shippingVehicle null;
  24.     #[ORM\OneToOne(cascade: ['persist''remove'])]
  25.     private ?PayableInvoice $accessoriesPayableInvoice null;
  26.     #[ORM\OneToOne(cascade: ['persist''remove'])]
  27.     private ?PayableInvoice $workmanshipPayableInvoice null;
  28.     public function getId(): ?int
  29.     {
  30.         return $this->id;
  31.     }
  32.     public function getChangeAt(): ?\DateTimeInterface
  33.     {
  34.         return $this->changeAt;
  35.     }
  36.     public function setChangeAt(?\DateTimeInterface $changeAt): self
  37.     {
  38.         $this->changeAt $changeAt;
  39.         return $this;
  40.     }
  41.     public function getCounterKm(): ?float
  42.     {
  43.         return $this->counterKm;
  44.     }
  45.     public function setCounterKm(?float $counterKm): self
  46.     {
  47.         $this->counterKm $counterKm;
  48.         return $this;
  49.     }
  50.     public function getAccessoriesSelection(): ?string
  51.     {
  52.         return $this->accessoriesSelection;
  53.     }
  54.     public function setAccessoriesSelection(?string $accessoriesSelection): self
  55.     {
  56.         $this->accessoriesSelection $accessoriesSelection;
  57.         return $this;
  58.     }
  59.     public function getShippingVehicle(): ?ShippingVehicle
  60.     {
  61.         return $this->shippingVehicle;
  62.     }
  63.     public function setShippingVehicle(?ShippingVehicle $shippingVehicle): self
  64.     {
  65.         $this->shippingVehicle $shippingVehicle;
  66.         return $this;
  67.     }
  68.     public function getAccessoriesPayableInvoice(): ?PayableInvoice
  69.     {
  70.         return $this->accessoriesPayableInvoice;
  71.     }
  72.     public function setAccessoriesPayableInvoice(?PayableInvoice $accessoriesPayableInvoice): self
  73.     {
  74.         $this->accessoriesPayableInvoice $accessoriesPayableInvoice;
  75.         return $this;
  76.     }
  77.     public function getWorkmanshipPayableInvoice(): ?PayableInvoice
  78.     {
  79.         return $this->workmanshipPayableInvoice;
  80.     }
  81.     public function setWorkmanshipPayableInvoice(?PayableInvoice $workmanshipPayableInvoice): self
  82.     {
  83.         $this->workmanshipPayableInvoice $workmanshipPayableInvoice;
  84.         return $this;
  85.     }
  86. }