src/Flexy/ShopBundle/Entity/Shipping/Vehicle/VehicleRepair.php line 12

  1. <?php
  2. namespace App\Flexy\ShopBundle\Entity\Shipping\Vehicle;
  3. use ApiPlatform\Metadata\ApiResource;
  4. use App\Repository\Flexy\ShopBundle\Entity\Shipping\VehicleRepairRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassVehicleRepairRepository::class)]
  8. #[ApiResource]
  9. class VehicleRepair
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255nullabletrue)]
  16.     private ?string $title null;
  17.     #[ORM\Column(nullabletrue)]
  18.     private ?bool $inGarage null;
  19.     #[ORM\Column(length255nullabletrue)]
  20.     private ?string $garageName null;
  21.     #[ORM\Column(nullabletrue)]
  22.     private ?int $nbrEmployeesGarage null;
  23.     #[ORM\Column(nullabletrue)]
  24.     private ?float $amount null;
  25.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  26.     private ?\DateTimeInterface $createdAt null;
  27.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  28.     private ?\DateTimeInterface $futureRepairAt null;
  29.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  30.     private ?string $description null;
  31.     #[ORM\ManyToOne(inversedBy'vehicleRepairs')]
  32.     private ?ShippingVehicle $shippingVehicle null;
  33.     public function getId(): ?int
  34.     {
  35.         return $this->id;
  36.     }
  37.     public function getTitle(): ?string
  38.     {
  39.         return $this->title;
  40.     }
  41.     public function setTitle(?string $title): self
  42.     {
  43.         $this->title $title;
  44.         return $this;
  45.     }
  46.     public function isInGarage(): ?bool
  47.     {
  48.         return $this->inGarage;
  49.     }
  50.     public function setInGarage(?bool $inGarage): self
  51.     {
  52.         $this->inGarage $inGarage;
  53.         return $this;
  54.     }
  55.     public function getGarageName(): ?string
  56.     {
  57.         return $this->garageName;
  58.     }
  59.     public function setGarageName(?string $garageName): self
  60.     {
  61.         $this->garageName $garageName;
  62.         return $this;
  63.     }
  64.     public function getNbrEmployeesGarage(): ?int
  65.     {
  66.         return $this->nbrEmployeesGarage;
  67.     }
  68.     public function setNbrEmployeesGarage(?int $nbrEmployeesGarage): self
  69.     {
  70.         $this->nbrEmployeesGarage $nbrEmployeesGarage;
  71.         return $this;
  72.     }
  73.     public function getAmount(): ?float
  74.     {
  75.         return $this->amount;
  76.     }
  77.     public function setAmount(?float $amount): self
  78.     {
  79.         $this->amount $amount;
  80.         return $this;
  81.     }
  82.     public function getCreatedAt(): ?\DateTimeInterface
  83.     {
  84.         return $this->createdAt;
  85.     }
  86.     public function setCreatedAt(?\DateTimeInterface $createdAt): self
  87.     {
  88.         $this->createdAt $createdAt;
  89.         return $this;
  90.     }
  91.     public function getFutureRepairAt(): ?\DateTimeInterface
  92.     {
  93.         return $this->futureRepairAt;
  94.     }
  95.     public function setFutureRepairAt(?\DateTimeInterface $futureRepairAt): self
  96.     {
  97.         $this->futureRepairAt $futureRepairAt;
  98.         return $this;
  99.     }
  100.     public function getDescription(): ?string
  101.     {
  102.         return $this->description;
  103.     }
  104.     public function setDescription(?string $description): self
  105.     {
  106.         $this->description $description;
  107.         return $this;
  108.     }
  109.     public function getShippingVehicle(): ?ShippingVehicle
  110.     {
  111.         return $this->shippingVehicle;
  112.     }
  113.     public function setShippingVehicle(?ShippingVehicle $shippingVehicle): self
  114.     {
  115.         $this->shippingVehicle $shippingVehicle;
  116.         return $this;
  117.     }
  118. }