src/Entity/StaffEducation.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\StaffEducationRepository;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\Component\Validator\Constraints as Assert;
  7. #[ORM\Entity(repositoryClassStaffEducationRepository::class), ORM\Table(name'staff_education')]
  8. class StaffEducation
  9. {
  10.     #[ORM\IdORM\GeneratedValueORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'string'length50), Assert\NotBlank]
  13.     private $degreeName;
  14.     #[ORM\ManyToOne(targetEntityStaffProfile::class, inversedBy'education'), ORM\JoinColumn(nullablefalse)]
  15.     private $profile;
  16.     #[ORM\Column(type'integer'), Assert\NotBlank]
  17.     private $percentage;
  18.     #[ORM\Column(type'string'length100)]
  19.     private $marksheet;
  20.     #[ORM\Column(type'string'length100nullabletrue)]
  21.     private $degreeCert;
  22.     #[ORM\Column(type'date'), Assert\NotBlank]
  23.     private $dateOfPassing;
  24.     #[Gedmo\Timestampable(on'create'), ORM\Column(type'datetime')]
  25.     private $createdAt;
  26.     #[Gedmo\Timestampable(on'update'), ORM\Column(type'datetime')]
  27.     private $updatedAt;
  28.     public function getId(): ?int
  29.     {
  30.         return $this->id;
  31.     }
  32.     public function getDegreeName(): ?string
  33.     {
  34.         return $this->degreeName;
  35.     }
  36.     public function setDegreeName(string $degreeName): self
  37.     {
  38.         $this->degreeName strip_tags($degreeName);
  39.         return $this;
  40.     }
  41.     public function getProfile(): ?StaffProfile
  42.     {
  43.         return $this->profile;
  44.     }
  45.     public function setProfile(?StaffProfile $profile): self
  46.     {
  47.         $this->profile $profile;
  48.         return $this;
  49.     }
  50.     public function getPercentage(): ?int
  51.     {
  52.         return $this->percentage;
  53.     }
  54.     public function setPercentage(int $percentage): self
  55.     {
  56.         $this->percentage $percentage;
  57.         return $this;
  58.     }
  59.     public function getMarksheet(): ?string
  60.     {
  61.         return $this->marksheet;
  62.     }
  63.     public function setMarksheet(string $marksheet): self
  64.     {
  65.         $this->marksheet $marksheet;
  66.         return $this;
  67.     }
  68.     public function getDegreeCert(): ?string
  69.     {
  70.         return $this->degreeCert;
  71.     }
  72.     public function setDegreeCert(?string $degreeCert): self
  73.     {
  74.         $this->degreeCert $degreeCert;
  75.         return $this;
  76.     }
  77.     public function getDateOfPassing(): ?\DateTimeInterface
  78.     {
  79.         return $this->dateOfPassing;
  80.     }
  81.     public function setDateOfPassing(\DateTimeInterface $dateOfPassing): self
  82.     {
  83.         $this->dateOfPassing $dateOfPassing;
  84.         return $this;
  85.     }
  86.     public function getCreatedAt(): ?\DateTimeInterface
  87.     {
  88.         return $this->createdAt;
  89.     }
  90.     public function getUpdatedAt(): ?\DateTimeInterface
  91.     {
  92.         return $this->updatedAt;
  93.     }
  94. }