<?php
namespace App\Entity;
use App\Repository\ParticipateRepository;
use Doctrine\ORM\Mapping as ORM;
use App\Traits\EntityDateTimeAbleTrait;
#[ORM\Entity(repositoryClass: ParticipateRepository::class)]
#[ORM\HasLifecycleCallbacks]
class Participate
{
use \App\Traits\EntityDateTimeAbleTrait;
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $firstName = null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $lastName = null;
#[ORM\Column(type: 'integer', nullable: true)]
private ?int $gender = null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $email = null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $telephone = null;
#[ORM\Column(type: 'integer', nullable: true)]
private ?int $level = null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $study = null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $school = null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $schoolPostal = null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $schoolCity = null;
#[ORM\ManyToOne(targetEntity: Campus::class, inversedBy: 'participates')]
private ?\App\Entity\Campus $campus = null;
#[ORM\Column(type: 'boolean', nullable: true)]
private ?bool $status = null;
#[ORM\Column(type: 'datetime', nullable: true)]
private ?\DateTimeInterface $date = null;
public function getId(): ?int
{
return $this->id;
}
public function getFirstName(): ?string
{
return $this->firstName;
}
public function setFirstName(?string $firstName): self
{
$this->firstName = $firstName;
return $this;
}
public function getLastName(): ?string
{
return $this->lastName;
}
public function setLastName(?string $lastName): self
{
$this->lastName = $lastName;
return $this;
}
public function getGender(): ?int
{
return $this->gender;
}
public function setGender(?int $gender): self
{
$this->gender = $gender;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(?string $email): self
{
$this->email = $email;
return $this;
}
public function getTelephone(): ?string
{
return $this->telephone;
}
public function setTelephone(?string $telephone): self
{
$this->telephone = $telephone;
return $this;
}
public function getLevel(): ?int
{
return $this->level;
}
public function setLevel(?int $level): self
{
$this->level = $level;
return $this;
}
public function getStudy(): ?string
{
return $this->study;
}
public function setStudy(?string $study): self
{
$this->study = $study;
return $this;
}
public function getSchool(): ?string
{
return $this->school;
}
public function setSchool(?string $school): self
{
$this->school = $school;
return $this;
}
public function getSchoolPostal(): ?string
{
return $this->schoolPostal;
}
public function setSchoolPostal(?string $schoolPostal): self
{
$this->schoolPostal = $schoolPostal;
return $this;
}
public function getSchoolCity(): ?string
{
return $this->schoolCity;
}
public function setSchoolCity(?string $schoolCity): self
{
$this->schoolCity = $schoolCity;
return $this;
}
public function getCampus(): ?Campus
{
return $this->campus;
}
public function setCampus(?Campus $campus): self
{
$this->campus = $campus;
return $this;
}
public function getStatus(): ?bool
{
return $this->status;
}
public function setStatus(?bool $status): self
{
$this->status = $status;
return $this;
}
public function getDate(): ?\DateTimeInterface
{
return $this->date;
}
public function setDate(?\DateTimeInterface $date): self
{
$this->date = $date;
return $this;
}
}