src/Entity/Participate.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ParticipateRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use App\Traits\EntityDateTimeAbleTrait;
  6. #[ORM\Entity(repositoryClass: ParticipateRepository::class)]
  7. #[ORM\HasLifecycleCallbacks]
  8. class Participate
  9. {
  10.     use \App\Traits\EntityDateTimeAbleTrait;
  11.     
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column(type: 'integer')]
  15.     private $id;
  16.     #[ORM\Column(type: 'string', length: 255, nullable: true)]
  17.     private ?string $firstName = null;
  18.     #[ORM\Column(type: 'string', length: 255, nullable: true)]
  19.     private ?string $lastName = null;
  20.     #[ORM\Column(type: 'integer', nullable: true)]
  21.     private ?int $gender = null;
  22.     #[ORM\Column(type: 'string', length: 255, nullable: true)]
  23.     private ?string $email = null;
  24.     #[ORM\Column(type: 'string', length: 255, nullable: true)]
  25.     private ?string $telephone = null;
  26.     #[ORM\Column(type: 'integer', nullable: true)]
  27.     private ?int $level = null;
  28.     #[ORM\Column(type: 'string', length: 255, nullable: true)]
  29.     private ?string $study = null;
  30.     #[ORM\Column(type: 'string', length: 255, nullable: true)]
  31.     private ?string $school = null;
  32.     #[ORM\Column(type: 'string', length: 255, nullable: true)]
  33.     private ?string $schoolPostal = null;
  34.     #[ORM\Column(type: 'string', length: 255, nullable: true)]
  35.     private ?string $schoolCity = null;
  36.     #[ORM\ManyToOne(targetEntity: Campus::class, inversedBy: 'participates')]
  37.     private ?\App\Entity\Campus $campus = null;
  38.     #[ORM\Column(type: 'boolean', nullable: true)]
  39.     private ?bool $status = null;
  40.     #[ORM\Column(type: 'datetime', nullable: true)]
  41.     private ?\DateTimeInterface $date = null;
  42.     public function getId(): ?int
  43.     {
  44.         return $this->id;
  45.     }
  46.     public function getFirstName(): ?string
  47.     {
  48.         return $this->firstName;
  49.     }
  50.     public function setFirstName(?string $firstName): self
  51.     {
  52.         $this->firstName = $firstName;
  53.         return $this;
  54.     }
  55.     public function getLastName(): ?string
  56.     {
  57.         return $this->lastName;
  58.     }
  59.     public function setLastName(?string $lastName): self
  60.     {
  61.         $this->lastName = $lastName;
  62.         return $this;
  63.     }
  64.     public function getGender(): ?int
  65.     {
  66.         return $this->gender;
  67.     }
  68.     public function setGender(?int $gender): self
  69.     {
  70.         $this->gender = $gender;
  71.         return $this;
  72.     }
  73.     public function getEmail(): ?string
  74.     {
  75.         return $this->email;
  76.     }
  77.     public function setEmail(?string $email): self
  78.     {
  79.         $this->email = $email;
  80.         return $this;
  81.     }
  82.     public function getTelephone(): ?string
  83.     {
  84.         return $this->telephone;
  85.     }
  86.     public function setTelephone(?string $telephone): self
  87.     {
  88.         $this->telephone = $telephone;
  89.         return $this;
  90.     }
  91.     public function getLevel(): ?int
  92.     {
  93.         return $this->level;
  94.     }
  95.     public function setLevel(?int $level): self
  96.     {
  97.         $this->level = $level;
  98.         return $this;
  99.     }
  100.     public function getStudy(): ?string
  101.     {
  102.         return $this->study;
  103.     }
  104.     public function setStudy(?string $study): self
  105.     {
  106.         $this->study = $study;
  107.         return $this;
  108.     }
  109.     public function getSchool(): ?string
  110.     {
  111.         return $this->school;
  112.     }
  113.     public function setSchool(?string $school): self
  114.     {
  115.         $this->school = $school;
  116.         return $this;
  117.     }
  118.     public function getSchoolPostal(): ?string
  119.     {
  120.         return $this->schoolPostal;
  121.     }
  122.     public function setSchoolPostal(?string $schoolPostal): self
  123.     {
  124.         $this->schoolPostal = $schoolPostal;
  125.         return $this;
  126.     }
  127.     public function getSchoolCity(): ?string
  128.     {
  129.         return $this->schoolCity;
  130.     }
  131.     public function setSchoolCity(?string $schoolCity): self
  132.     {
  133.         $this->schoolCity = $schoolCity;
  134.         return $this;
  135.     }
  136.     public function getCampus(): ?Campus
  137.     {
  138.         return $this->campus;
  139.     }
  140.     public function setCampus(?Campus $campus): self
  141.     {
  142.         $this->campus = $campus;
  143.         return $this;
  144.     }
  145.     public function getStatus(): ?bool
  146.     {
  147.         return $this->status;
  148.     }
  149.     public function setStatus(?bool $status): self
  150.     {
  151.         $this->status = $status;
  152.         return $this;
  153.     }
  154.     public function getDate(): ?\DateTimeInterface
  155.     {
  156.         return $this->date;
  157.     }
  158.     public function setDate(?\DateTimeInterface $date): self
  159.     {
  160.         $this->date = $date;
  161.         return $this;
  162.     }
  163. }