src/Flexy/ShopBundle/Entity/Shipping/Vehicle/OilMaintenance.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\OilMaintenanceRepository;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassOilMaintenanceRepository::class)]
  9. #[ApiResource]
  10. class OilMaintenance
  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(nullabletrue)]
  21.     private ?bool $oilFilter null;
  22.     #[ORM\Column(nullabletrue)]
  23.     private ?bool $fuelFilter null;
  24.     #[ORM\Column(nullabletrue)]
  25.     private ?bool $airFilter null;
  26.     #[ORM\Column(nullabletrue)]
  27.     private ?bool $cabinAirFilter null;
  28.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  29.     private ?\DateTimeInterface $futureChangeAt null;
  30.     #[ORM\Column(nullabletrue)]
  31.     private ?float $futureCounterKm null;
  32.     #[ORM\OneToOne(cascade: ['persist''remove'])]
  33.     private ?PayableInvoice $accessoriesPayableInvoice null;
  34.     #[ORM\OneToOne(cascade: ['persist''remove'])]
  35.     private ?PayableInvoice $workmanshipPayableInvoice null;
  36.     #[ORM\ManyToOne(inversedBy'oilMaintenances')]
  37.     private ?ShippingVehicle $shippingVehicle null;
  38.     public function getId(): ?int
  39.     {
  40.         return $this->id;
  41.     }
  42.     public function getChangeAt(): ?\DateTimeInterface
  43.     {
  44.         return $this->changeAt;
  45.     }
  46.     public function setChangeAt(?\DateTimeInterface $changeAt): self
  47.     {
  48.         $this->changeAt $changeAt;
  49.         return $this;
  50.     }
  51.     public function getCounterKm(): ?float
  52.     {
  53.         return $this->counterKm;
  54.     }
  55.     public function setCounterKm(?float $counterKm): self
  56.     {
  57.         $this->counterKm $counterKm;
  58.         return $this;
  59.     }
  60.     public function isOilFilter(): ?bool
  61.     {
  62.         return $this->oilFilter;
  63.     }
  64.     public function setOilFilter(?bool $oilFilter): self
  65.     {
  66.         $this->oilFilter $oilFilter;
  67.         return $this;
  68.     }
  69.     public function isFuelFilter(): ?bool
  70.     {
  71.         return $this->fuelFilter;
  72.     }
  73.     public function setFuelFilter(?bool $fuelFilter): self
  74.     {
  75.         $this->fuelFilter $fuelFilter;
  76.         return $this;
  77.     }
  78.     public function isAirFilter(): ?bool
  79.     {
  80.         return $this->airFilter;
  81.     }
  82.     public function setAirFilter(?bool $airFilter): self
  83.     {
  84.         $this->airFilter $airFilter;
  85.         return $this;
  86.     }
  87.     public function isCabinAirFilter(): ?bool
  88.     {
  89.         return $this->cabinAirFilter;
  90.     }
  91.     public function setCabinAirFilter(?bool $cabinAirFilter): self
  92.     {
  93.         $this->cabinAirFilter $cabinAirFilter;
  94.         return $this;
  95.     }
  96.     public function getFutureChangeAt(): ?\DateTimeInterface
  97.     {
  98.         return $this->futureChangeAt;
  99.     }
  100.     public function setFutureChangeAt(?\DateTimeInterface $futureChangeAt): self
  101.     {
  102.         $this->futureChangeAt $futureChangeAt;
  103.         return $this;
  104.     }
  105.     public function getFutureCounterKm(): ?float
  106.     {
  107.         return $this->futureCounterKm;
  108.     }
  109.     public function setFutureCounterKm(?float $futureCounterKm): self
  110.     {
  111.         $this->futureCounterKm $futureCounterKm;
  112.         return $this;
  113.     }
  114.     public function getAccessoriesPayableInvoice(): ?PayableInvoice
  115.     {
  116.         return $this->accessoriesPayableInvoice;
  117.     }
  118.     public function setAccessoriesPayableInvoice(?PayableInvoice $accessoriesPayableInvoice): self
  119.     {
  120.         $this->accessoriesPayableInvoice $accessoriesPayableInvoice;
  121.         return $this;
  122.     }
  123.     public function getWorkmanshipPayableInvoice(): ?PayableInvoice
  124.     {
  125.         return $this->workmanshipPayableInvoice;
  126.     }
  127.     public function setWorkmanshipPayableInvoice(?PayableInvoice $workmanshipPayableInvoice): self
  128.     {
  129.         $this->workmanshipPayableInvoice $workmanshipPayableInvoice;
  130.         return $this;
  131.     }
  132.     public function getShippingVehicle(): ?ShippingVehicle
  133.     {
  134.         return $this->shippingVehicle;
  135.     }
  136.     public function setShippingVehicle(?ShippingVehicle $shippingVehicle): self
  137.     {
  138.         $this->shippingVehicle $shippingVehicle;
  139.         return $this;
  140.     }
  141. }