<?php
namespace App\Entity;
use App\Repository\StaffEducationRepository;
use Gedmo\Mapping\Annotation as Gedmo;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
#[ORM\Entity(repositoryClass: StaffEducationRepository::class), ORM\Table(name: 'staff_education')]
class StaffEducation
{
#[ORM\Id, ORM\GeneratedValue, ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 50), Assert\NotBlank]
private $degreeName;
#[ORM\ManyToOne(targetEntity: StaffProfile::class, inversedBy: 'education'), ORM\JoinColumn(nullable: false)]
private $profile;
#[ORM\Column(type: 'integer'), Assert\NotBlank]
private $percentage;
#[ORM\Column(type: 'string', length: 100)]
private $marksheet;
#[ORM\Column(type: 'string', length: 100, nullable: true)]
private $degreeCert;
#[ORM\Column(type: 'date'), Assert\NotBlank]
private $dateOfPassing;
#[Gedmo\Timestampable(on: 'create'), ORM\Column(type: 'datetime')]
private $createdAt;
#[Gedmo\Timestampable(on: 'update'), ORM\Column(type: 'datetime')]
private $updatedAt;
public function getId(): ?int
{
return $this->id;
}
public function getDegreeName(): ?string
{
return $this->degreeName;
}
public function setDegreeName(string $degreeName): self
{
$this->degreeName = strip_tags($degreeName);
return $this;
}
public function getProfile(): ?StaffProfile
{
return $this->profile;
}
public function setProfile(?StaffProfile $profile): self
{
$this->profile = $profile;
return $this;
}
public function getPercentage(): ?int
{
return $this->percentage;
}
public function setPercentage(int $percentage): self
{
$this->percentage = $percentage;
return $this;
}
public function getMarksheet(): ?string
{
return $this->marksheet;
}
public function setMarksheet(string $marksheet): self
{
$this->marksheet = $marksheet;
return $this;
}
public function getDegreeCert(): ?string
{
return $this->degreeCert;
}
public function setDegreeCert(?string $degreeCert): self
{
$this->degreeCert = $degreeCert;
return $this;
}
public function getDateOfPassing(): ?\DateTimeInterface
{
return $this->dateOfPassing;
}
public function setDateOfPassing(\DateTimeInterface $dateOfPassing): self
{
$this->dateOfPassing = $dateOfPassing;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
}