<?php
namespace App\Entity\Training;
use ApiPlatform\Core\Annotation\ApiResource;
use App\Repository\Training\JuryRepository;
use App\Traits\Actions;
use App\Entity\Schoolyear;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: JuryRepository::class)]
#[ORM\Table(name: 'hs_tc_training_jury')]
#[ApiResource]
class Jury
{
use Actions;
#[ORM\Column(name: "pole", type: "string", length: 255)]
private ?string $pole = null;
#[ORM\Column(name: "president", type: "string", length: 255, nullable: true)]
private ?string $president = null;
#[ORM\Column(name: "representant_dfp", type: "string", length: 255, nullable: true)]
private ?string $representantDFP = null;
#[ORM\Column(name: "member1", type: "string", length: 255, nullable: true)]
private ?string $member1 = null;
#[ORM\Column(name: "member2", type: "string", length: 255, nullable: true)]
private ?string $member2 = null;
#[ORM\Column(name: "member3", type: "string", length: 255, nullable: true)]
private ?string $member3 = null;
#[ORM\ManyToOne(targetEntity: Schoolyear::class, inversedBy: "jurys")]
#[ORM\JoinColumn(nullable: false)]
private ?\App\Entity\Schoolyear $schoolyear = null;
/**
* Jury constructor.
*/
public function __construct()
{
// date_default_timezone_set('Africa/Casablanca');
$this->createAt=new \DateTime('now');
$this->published=true;
}
/**
* @return string
*/
public function getPole(): ?string
{
return $this->pole;
}
/**
* @param string $pole
*/
public function setPole(?string $pole): Jury
{
$this->pole = $pole;
return $this;
}
/**
* @return string
*/
public function getPresident(): ?string
{
return $this->president;
}
/**
* @param string $president
*/
public function setPresident(?string $president): Jury
{
$this->president = $president;
return $this;
}
/**
* @return string
*/
public function getRepresentantDFP(): ?string
{
return $this->representantDFP;
}
/**
* @param string $representantDFP
*/
public function setRepresentantDFP(?string $representantDFP): Jury
{
$this->representantDFP = $representantDFP;
return $this;
}
/**
* @return string
*/
public function getMember1(): ?string
{
return $this->member1;
}
/**
* @param string $member1
*/
public function setMember1(?string $member1): Jury
{
$this->member1 = $member1;
return $this;
}
/**
* @return string
*/
public function getMember2(): ?string
{
return $this->member2;
}
/**
* @param string $member2
*/
public function setMember2(?string $member2): Jury
{
$this->member2 = $member2;
return $this;
}
/**
* @return string
*/
public function getMember3(): ?string
{
return $this->member3;
}
/**
* @param string $member3
*/
public function setMember3(?string $member3): Jury
{
$this->member3 = $member3;
return $this;
}
/**
* @return Schoolyear
*/
public function getSchoolyear(): ?Schoolyear
{
return $this->schoolyear;
}
/**
* @param Schoolyear $schoolyear
*/
public function setSchoolyear(?Schoolyear $schoolyear): Jury
{
$this->schoolyear = $schoolyear;
return $this;
}
}