src/Entity/RegistrationTransportCheckpoint.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RegistrationTransportCheckpointRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=RegistrationTransportCheckpointRepository::class)
  9.  */
  10. class RegistrationTransportCheckpoint
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\ManyToOne(targetEntity=TransportZone::class, inversedBy="registrationTransportCheckpoints")
  20.      * @ORM\JoinColumn(nullable=false)
  21.      */
  22.     private $transportZone;
  23.     /**
  24.      * @ORM\ManyToOne(targetEntity=TransportVehicle::class, inversedBy="registrationTransportCheckpoints")
  25.      * @ORM\JoinColumn(nullable=false)
  26.      */
  27.     private $transportVehicle;
  28.     /**
  29.      * @ORM\ManyToOne(targetEntity=TransportZoneCheckPoint::class, inversedBy="registrationTransportCheckpoints")
  30.      * @ORM\JoinColumn(nullable=false)
  31.      */
  32.     private $transportZoneCheckPoint;
  33.     /**
  34.      * @ORM\ManyToOne(targetEntity=Establishment::class, inversedBy="registrationTransportCheckpoints")
  35.      * @ORM\JoinColumn(nullable=false)
  36.      */
  37.     private $establishment;
  38.     /**
  39.      * @ORM\Column(type="string", length=30, nullable=true)
  40.      */
  41.     private $morning_schedule;
  42.     /**
  43.      * @ORM\Column(type="string", length=30, nullable=true)
  44.      */
  45.     private $evening_schedule;
  46.     /**
  47.      * @ORM\Column(type="datetime_immutable")
  48.      */
  49.     private $created_at;
  50.     /**
  51.      * @ORM\Column(type="datetime_immutable")
  52.      */
  53.     private $updated_at;
  54.     /**
  55.      * @ORM\Column(type="integer")
  56.      */
  57.     private $created_by;
  58.     /**
  59.      * @ORM\Column(type="integer")
  60.      */
  61.     private $updated_by;
  62.     /**
  63.      * @ORM\ManyToOne(targetEntity=RegistrationStudentRegistration::class, inversedBy="registrationTransportCheckpoints")
  64.      * @ORM\JoinColumn(nullable=false)
  65.      */
  66.     private $registrationStudentRegistration;
  67.     /**
  68.      * @ORM\OneToMany(targetEntity=TransportCallSheetLine::class, mappedBy="registrationTransportCheckpoint")
  69.      */
  70.     private $transportCallSheetLines;
  71.     //un boulean qui permet de savoir si l'enfafant est recuperer à la maison
  72.     /**
  73.      * @ORM\Column(type="boolean")
  74.      */
  75.     private $is_home_pickup;
  76.     public function __construct()
  77.     {
  78.         $this->is_home_pickup false;
  79.         $this->transportCallSheetLines = new ArrayCollection();
  80.     }
  81.     public function getId(): ?int
  82.     {
  83.         return $this->id;
  84.     }
  85.     public function getTransportZone(): ?TransportZone
  86.     {
  87.         return $this->transportZone;
  88.     }
  89.     public function setTransportZone(?TransportZone $transportZone): self
  90.     {
  91.         $this->transportZone $transportZone;
  92.         return $this;
  93.     }
  94.     public function getTransportVehicle(): ?TransportVehicle
  95.     {
  96.         return $this->transportVehicle;
  97.     }
  98.     public function setTransportVehicle(?TransportVehicle $transportVehicle): self
  99.     {
  100.         $this->transportVehicle $transportVehicle;
  101.         return $this;
  102.     }
  103.     public function getTransportZoneCheckPoint(): ?TransportZoneCheckPoint
  104.     {
  105.         return $this->transportZoneCheckPoint;
  106.     }
  107.     public function setTransportZoneCheckPoint(?TransportZoneCheckPoint $transportZoneCheckPoint): self
  108.     {
  109.         $this->transportZoneCheckPoint $transportZoneCheckPoint;
  110.         return $this;
  111.     }
  112.     public function getEstablishment(): ?Establishment
  113.     {
  114.         return $this->establishment;
  115.     }
  116.     public function setEstablishment(?Establishment $establishment): self
  117.     {
  118.         $this->establishment $establishment;
  119.         return $this;
  120.     }
  121.     public function getMorningSchedule(): ?string
  122.     {
  123.         return $this->morning_schedule;
  124.     }
  125.     public function setMorningSchedule(?string $morning_schedule): self
  126.     {
  127.         $this->morning_schedule $morning_schedule;
  128.         return $this;
  129.     }
  130.     public function getEveningSchedule(): ?string
  131.     {
  132.         return $this->evening_schedule;
  133.     }
  134.     public function setEveningSchedule(?string $evening_schedule): self
  135.     {
  136.         $this->evening_schedule $evening_schedule;
  137.         return $this;
  138.     }
  139.     public function getCreatedAt(): ?\DateTimeImmutable
  140.     {
  141.         return $this->created_at;
  142.     }
  143.     public function setCreatedAt(\DateTimeImmutable $created_at): self
  144.     {
  145.         $this->created_at $created_at;
  146.         return $this;
  147.     }
  148.     public function getUpdatedAt(): ?\DateTimeImmutable
  149.     {
  150.         return $this->updated_at;
  151.     }
  152.     public function setUpdatedAt(\DateTimeImmutable $updated_at): self
  153.     {
  154.         $this->updated_at $updated_at;
  155.         return $this;
  156.     }
  157.     public function getCreatedBy(): ?int
  158.     {
  159.         return $this->created_by;
  160.     }
  161.     public function setCreatedBy(int $created_by): self
  162.     {
  163.         $this->created_by $created_by;
  164.         return $this;
  165.     }
  166.     public function getUpdatedBy(): ?int
  167.     {
  168.         return $this->updated_by;
  169.     }
  170.     public function setUpdatedBy(int $updated_by): self
  171.     {
  172.         $this->updated_by $updated_by;
  173.         return $this;
  174.     }
  175.     public function getRegistrationStudentRegistration(): ?RegistrationStudentRegistration
  176.     {
  177.         return $this->registrationStudentRegistration;
  178.     }
  179.     public function setRegistrationStudentRegistration(?RegistrationStudentRegistration $registrationStudentRegistration): self
  180.     {
  181.         $this->registrationStudentRegistration $registrationStudentRegistration;
  182.         return $this;
  183.     }
  184.     /**
  185.      * @return Collection|TransportCallSheetLine[]
  186.      */
  187.     public function getTransportCallSheetLines(): Collection
  188.     {
  189.         return $this->transportCallSheetLines;
  190.     }
  191.     public function addTransportCallSheetLine(TransportCallSheetLine $transportCallSheetLine): self
  192.     {
  193.         if (!$this->transportCallSheetLines->contains($transportCallSheetLine)) {
  194.             $this->transportCallSheetLines[] = $transportCallSheetLine;
  195.             $transportCallSheetLine->setRegistrationTransportCheckpoint($this);
  196.         }
  197.         return $this;
  198.     }
  199.     public function removeTransportCallSheetLine(TransportCallSheetLine $transportCallSheetLine): self
  200.     {
  201.         if ($this->transportCallSheetLines->removeElement($transportCallSheetLine)) {
  202.             // set the owning side to null (unless already changed)
  203.             if ($transportCallSheetLine->getRegistrationTransportCheckpoint() === $this) {
  204.                 $transportCallSheetLine->setRegistrationTransportCheckpoint(null);
  205.             }
  206.         }
  207.         return $this;
  208.     }
  209.     public function getIsHomePickup(): ?bool
  210.     {
  211.         return $this->is_home_pickup;
  212.     }
  213.     public function setIsHomePickup(bool $is_home_pickup): self
  214.     {
  215.         $this->is_home_pickup $is_home_pickup;
  216.         return $this;
  217.     }
  218. }