src/Flexy/ShopBundle/Entity/Shipping/Vehicle/OilMaintenance.php line 13
<?php
namespace App\Flexy\ShopBundle\Entity\Shipping\Vehicle;
use ApiPlatform\Metadata\ApiResource;
use App\Flexy\ShopBundle\Entity\Accounting\PayableInvoice;
use App\Repository\Flexy\ShopBundle\Entity\Shipping\Vehicle\OilMaintenanceRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: OilMaintenanceRepository::class)]
#[ApiResource]
class OilMaintenance
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $changeAt = null;
#[ORM\Column(nullable: true)]
private ?float $counterKm = null;
#[ORM\Column(nullable: true)]
private ?bool $oilFilter = null;
#[ORM\Column(nullable: true)]
private ?bool $fuelFilter = null;
#[ORM\Column(nullable: true)]
private ?bool $airFilter = null;
#[ORM\Column(nullable: true)]
private ?bool $cabinAirFilter = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $futureChangeAt = null;
#[ORM\Column(nullable: true)]
private ?float $futureCounterKm = null;
#[ORM\OneToOne(cascade: ['persist', 'remove'])]
private ?PayableInvoice $accessoriesPayableInvoice = null;
#[ORM\OneToOne(cascade: ['persist', 'remove'])]
private ?PayableInvoice $workmanshipPayableInvoice = null;
#[ORM\ManyToOne(inversedBy: 'oilMaintenances')]
private ?ShippingVehicle $shippingVehicle = null;
public function getId(): ?int
{
return $this->id;
}
public function getChangeAt(): ?\DateTimeInterface
{
return $this->changeAt;
}
public function setChangeAt(?\DateTimeInterface $changeAt): self
{
$this->changeAt = $changeAt;
return $this;
}
public function getCounterKm(): ?float
{
return $this->counterKm;
}
public function setCounterKm(?float $counterKm): self
{
$this->counterKm = $counterKm;
return $this;
}
public function isOilFilter(): ?bool
{
return $this->oilFilter;
}
public function setOilFilter(?bool $oilFilter): self
{
$this->oilFilter = $oilFilter;
return $this;
}
public function isFuelFilter(): ?bool
{
return $this->fuelFilter;
}
public function setFuelFilter(?bool $fuelFilter): self
{
$this->fuelFilter = $fuelFilter;
return $this;
}
public function isAirFilter(): ?bool
{
return $this->airFilter;
}
public function setAirFilter(?bool $airFilter): self
{
$this->airFilter = $airFilter;
return $this;
}
public function isCabinAirFilter(): ?bool
{
return $this->cabinAirFilter;
}
public function setCabinAirFilter(?bool $cabinAirFilter): self
{
$this->cabinAirFilter = $cabinAirFilter;
return $this;
}
public function getFutureChangeAt(): ?\DateTimeInterface
{
return $this->futureChangeAt;
}
public function setFutureChangeAt(?\DateTimeInterface $futureChangeAt): self
{
$this->futureChangeAt = $futureChangeAt;
return $this;
}
public function getFutureCounterKm(): ?float
{
return $this->futureCounterKm;
}
public function setFutureCounterKm(?float $futureCounterKm): self
{
$this->futureCounterKm = $futureCounterKm;
return $this;
}
public function getAccessoriesPayableInvoice(): ?PayableInvoice
{
return $this->accessoriesPayableInvoice;
}
public function setAccessoriesPayableInvoice(?PayableInvoice $accessoriesPayableInvoice): self
{
$this->accessoriesPayableInvoice = $accessoriesPayableInvoice;
return $this;
}
public function getWorkmanshipPayableInvoice(): ?PayableInvoice
{
return $this->workmanshipPayableInvoice;
}
public function setWorkmanshipPayableInvoice(?PayableInvoice $workmanshipPayableInvoice): self
{
$this->workmanshipPayableInvoice = $workmanshipPayableInvoice;
return $this;
}
public function getShippingVehicle(): ?ShippingVehicle
{
return $this->shippingVehicle;
}
public function setShippingVehicle(?ShippingVehicle $shippingVehicle): self
{
$this->shippingVehicle = $shippingVehicle;
return $this;
}
}