src/Entity/PlanningRemorque.php line 9

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PlanningRemorqueRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassPlanningRemorqueRepository::class)]
  6. class PlanningRemorque
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\ManyToOne(inversedBy'planningRemorques')]
  13.     private ?Planning $planning null;
  14.     #[ORM\ManyToOne(inversedBy'planningRemorques')]
  15.     private ?Remorque $remorque null;
  16.     #[ORM\Column]
  17.     private ?int $num null;
  18.     public function getId(): ?int
  19.     {
  20.         return $this->id;
  21.     }
  22.     public function getPlanning(): ?Planning
  23.     {
  24.         return $this->planning;
  25.     }
  26.     public function setPlanning(?Planning $planning): self
  27.     {
  28.         $this->planning $planning;
  29.         return $this;
  30.     }
  31.     public function getRemorque(): ?Remorque
  32.     {
  33.         return $this->remorque;
  34.     }
  35.     public function setRemorque(?Remorque $remorque): self
  36.     {
  37.         $this->remorque $remorque;
  38.         return $this;
  39.     }
  40.     public function getNum(): ?int
  41.     {
  42.         return $this->num;
  43.     }
  44.     public function setNum(int $num): self
  45.     {
  46.         $this->num $num;
  47.         return $this;
  48.     }
  49. }