src/Flexy/ShopBundle/Entity/Shipping/Vehicle/BrakingControl.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\BrakingControlRepository;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassBrakingControlRepository::class)]
  9. #[ApiResource]
  10. class BrakingControl
  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 $brakePads null;
  22.     #[ORM\Column(length255nullabletrue)]
  23.     private ?string $brakeDiscs null;
  24.     #[ORM\Column(nullabletrue)]
  25.     private ?bool $oilBrake null;
  26.     #[ORM\OneToOne(cascade: ['persist''remove'])]
  27.     private ?PayableInvoice $accessoriesPayableInvoice null;
  28.     #[ORM\OneToOne(cascade: ['persist''remove'])]
  29.     private ?PayableInvoice $workmanshipPayableInvoice null;
  30.     #[ORM\ManyToOne(inversedBy'brakingControls')]
  31.     private ?ShippingVehicle $shippingVehicle null;
  32.     public function getId(): ?int
  33.     {
  34.         return $this->id;
  35.     }
  36.     public function getChangeAt(): ?\DateTimeInterface
  37.     {
  38.         return $this->changeAt;
  39.     }
  40.     public function setChangeAt(?\DateTimeInterface $changeAt): self
  41.     {
  42.         $this->changeAt $changeAt;
  43.         return $this;
  44.     }
  45.     public function getCounterKm(): ?float
  46.     {
  47.         return $this->counterKm;
  48.     }
  49.     public function setCounterKm(?float $counterKm): self
  50.     {
  51.         $this->counterKm $counterKm;
  52.         return $this;
  53.     }
  54.     public function getBrakePads(): ?string
  55.     {
  56.         return $this->brakePads;
  57.     }
  58.     public function setBrakePads(?string $brakePads): self
  59.     {
  60.         $this->brakePads $brakePads;
  61.         return $this;
  62.     }
  63.     public function getBrakeDiscs(): ?string
  64.     {
  65.         return $this->brakeDiscs;
  66.     }
  67.     public function setBrakeDiscs(?string $brakeDiscs): self
  68.     {
  69.         $this->brakeDiscs $brakeDiscs;
  70.         return $this;
  71.     }
  72.     public function isOilBrake(): ?bool
  73.     {
  74.         return $this->oilBrake;
  75.     }
  76.     public function setOilBrake(?bool $oilBrake): self
  77.     {
  78.         $this->oilBrake $oilBrake;
  79.         return $this;
  80.     }
  81.     public function getAccessoriesPayableInvoice(): ?PayableInvoice
  82.     {
  83.         return $this->accessoriesPayableInvoice;
  84.     }
  85.     public function setAccessoriesPayableInvoice(?PayableInvoice $accessoriesPayableInvoice): self
  86.     {
  87.         $this->accessoriesPayableInvoice $accessoriesPayableInvoice;
  88.         return $this;
  89.     }
  90.     public function getWorkmanshipPayableInvoice(): ?PayableInvoice
  91.     {
  92.         return $this->workmanshipPayableInvoice;
  93.     }
  94.     public function setWorkmanshipPayableInvoice(?PayableInvoice $workmanshipPayableInvoice): self
  95.     {
  96.         $this->workmanshipPayableInvoice $workmanshipPayableInvoice;
  97.         return $this;
  98.     }
  99.     public function getShippingVehicle(): ?ShippingVehicle
  100.     {
  101.         return $this->shippingVehicle;
  102.     }
  103.     public function setShippingVehicle(?ShippingVehicle $shippingVehicle): self
  104.     {
  105.         $this->shippingVehicle $shippingVehicle;
  106.         return $this;
  107.     }
  108. }