src/Flexy/ShopBundle/Entity/Shipping/Vehicle/TireControl.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\TireControlRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: TireControlRepository::class)]
#[ApiResource]
class TireControl
{
#[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(length: 255, nullable: true)]
private ?string $tireSelection = null;
#[ORM\OneToOne(cascade: ['persist', 'remove'])]
private ?PayableInvoice $accessoriesPayableInvoice = null;
#[ORM\OneToOne(cascade: ['persist', 'remove'])]
private ?PayableInvoice $workmanshipPayableInvoice = null;
#[ORM\ManyToOne(inversedBy: 'tireControls')]
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 getTireSelection(): ?string
{
return $this->tireSelection;
}
public function setTireSelection(?string $tireSelection): self
{
$this->tireSelection = $tireSelection;
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;
}
}