src/Flexy/ShopBundle/Entity/Shipping/Vehicle/TechnicalControl.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\TechnicalControlRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: TechnicalControlRepository::class)]
#[ApiResource]
class TechnicalControl
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $controlAt = null;
#[ORM\Column(nullable: true)]
private ?float $counterKm = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $futureControlAt = null;
#[ORM\OneToOne(cascade: ['persist', 'remove'])]
private ?PayableInvoice $payableInvoice = null;
#[ORM\ManyToOne(inversedBy: 'technicalControls')]
private ?ShippingVehicle $shippingVehicle = null;
public function getId(): ?int
{
return $this->id;
}
public function getControlAt(): ?\DateTimeInterface
{
return $this->controlAt;
}
public function setControlAt(?\DateTimeInterface $controlAt): self
{
$this->controlAt = $controlAt;
return $this;
}
public function getCounterKm(): ?float
{
return $this->counterKm;
}
public function setCounterKm(?float $counterKm): self
{
$this->counterKm = $counterKm;
return $this;
}
public function getFutureControlAt(): ?\DateTimeInterface
{
return $this->futureControlAt;
}
public function setFutureControlAt(?\DateTimeInterface $futureControlAt): self
{
$this->futureControlAt = $futureControlAt;
return $this;
}
public function getPayableInvoice(): ?PayableInvoice
{
return $this->payableInvoice;
}
public function setPayableInvoice(?PayableInvoice $payableInvoice): self
{
$this->payableInvoice = $payableInvoice;
return $this;
}
public function getShippingVehicle(): ?ShippingVehicle
{
return $this->shippingVehicle;
}
public function setShippingVehicle(?ShippingVehicle $shippingVehicle): self
{
$this->shippingVehicle = $shippingVehicle;
return $this;
}
}