src/Entity/Training/Jury.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Training;
  3. use ApiPlatform\Core\Annotation\ApiResource;
  4. use App\Repository\Training\JuryRepository;
  5. use App\Traits\Actions;
  6. use App\Entity\Schoolyear;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassJuryRepository::class)]
  9. #[ORM\Table(name'hs_tc_training_jury')]
  10. #[ApiResource]
  11. class Jury
  12. {
  13.     use Actions;
  14.     #[ORM\Column(name"pole"type"string"length255)]
  15.     private ?string $pole null;
  16.     #[ORM\Column(name"president"type"string"length255nullabletrue)]
  17.     private ?string $president null;
  18.     #[ORM\Column(name"representant_dfp"type"string"length255nullabletrue)]
  19.     private ?string $representantDFP null;
  20.     #[ORM\Column(name"member1"type"string"length255nullabletrue)]
  21.     private ?string $member1 null;
  22.     #[ORM\Column(name"member2"type"string"length255nullabletrue)]
  23.     private ?string $member2 null;
  24.     #[ORM\Column(name"member3"type"string"length255nullabletrue)]
  25.     private ?string $member3 null;
  26.     #[ORM\ManyToOne(targetEntitySchoolyear::class, inversedBy"jurys")]
  27.     #[ORM\JoinColumn(nullablefalse)]
  28.     private ?\App\Entity\Schoolyear $schoolyear null;
  29.     /**
  30.      * Jury constructor.
  31.      */
  32.     public function __construct()
  33.     {
  34.         // date_default_timezone_set('Africa/Casablanca');
  35.         $this->createAt=new \DateTime('now');
  36.         $this->published=true;
  37.     }
  38.     /**
  39.      * @return string
  40.      */
  41.     public function getPole(): ?string
  42.     {
  43.         return $this->pole;
  44.     }
  45.     /**
  46.      * @param string $pole
  47.      */
  48.     public function setPole(?string $pole): Jury
  49.     {
  50.         $this->pole $pole;
  51.         return $this;
  52.     }
  53.     /**
  54.      * @return string
  55.      */
  56.     public function getPresident(): ?string
  57.     {
  58.         return $this->president;
  59.     }
  60.     /**
  61.      * @param string $president
  62.      */
  63.     public function setPresident(?string $president): Jury
  64.     {
  65.         $this->president $president;
  66.         return $this;
  67.     }
  68.     /**
  69.      * @return string
  70.      */
  71.     public function getRepresentantDFP(): ?string
  72.     {
  73.         return $this->representantDFP;
  74.     }
  75.     /**
  76.      * @param string $representantDFP
  77.      */
  78.     public function setRepresentantDFP(?string $representantDFP): Jury
  79.     {
  80.         $this->representantDFP $representantDFP;
  81.         return $this;
  82.     }
  83.     /**
  84.      * @return string
  85.      */
  86.     public function getMember1(): ?string
  87.     {
  88.         return $this->member1;
  89.     }
  90.     /**
  91.      * @param string $member1
  92.      */
  93.     public function setMember1(?string $member1): Jury
  94.     {
  95.         $this->member1 $member1;
  96.         return $this;
  97.     }
  98.     /**
  99.      * @return string
  100.      */
  101.     public function getMember2(): ?string
  102.     {
  103.         return $this->member2;
  104.     }
  105.     /**
  106.      * @param string $member2
  107.      */
  108.     public function setMember2(?string $member2): Jury
  109.     {
  110.         $this->member2 $member2;
  111.         return $this;
  112.     }
  113.     /**
  114.      * @return string
  115.      */
  116.     public function getMember3(): ?string
  117.     {
  118.         return $this->member3;
  119.     }
  120.     /**
  121.      * @param string $member3
  122.      */
  123.     public function setMember3(?string $member3): Jury
  124.     {
  125.         $this->member3 $member3;
  126.         return $this;
  127.     }
  128.     /**
  129.      * @return Schoolyear
  130.      */
  131.     public function getSchoolyear(): ?Schoolyear
  132.     {
  133.         return $this->schoolyear;
  134.     }
  135.     /**
  136.      * @param Schoolyear $schoolyear
  137.      */
  138.     public function setSchoolyear(?Schoolyear $schoolyear): Jury
  139.     {
  140.         $this->schoolyear $schoolyear;
  141.         return $this;
  142.     }
  143. }