<?php
namespace App\Entity;
use App\Repository\UserEducationRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: UserEducationRepository::class)]
class UserEducation
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private ?int $id;
#[ORM\ManyToOne(targetEntity: UserInfo::class)]
private ?UserInfo $userInfo;
#[ORM\ManyToOne(targetEntity: EducationOrganization::class)]
private ?EducationOrganization $eduOrg;
#[ORM\Column(type: 'string', length: 255)]
private ?string $eduOrgName;
#[ORM\Column(type: 'integer')]
private ?int $graduatedYear;
#[ORM\Column(type: 'float')]
private ?float $gradeAvg;
#[ORM\ManyToOne(targetEntity: Country::class)]
private ?Country $country;
#[ORM\ManyToOne(targetEntity: GlobalConstant::class)]
#[ORM\JoinColumn(nullable: true, onDelete: 'SET NULL')]
private ?GlobalConstant $degree;
#[ORM\ManyToOne(targetEntity: Addressing::class)]
private ?Addressing $addressing;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $profession;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $certificateNumber;
public function getId(): ?int
{
return $this->id;
}
public function getEduOrgName(): ?string
{
return $this->eduOrgName;
}
public function setEduOrgName(string $eduOrgName): self
{
$this->eduOrgName = $eduOrgName;
return $this;
}
public function getGraduatedYear(): ?int
{
return $this->graduatedYear;
}
public function setGraduatedYear(int $graduatedYear): self
{
$this->graduatedYear = $graduatedYear;
return $this;
}
public function getGradeAvg(): ?float
{
return $this->gradeAvg;
}
public function setGradeAvg(float $gradeAvg): self
{
$this->gradeAvg = $gradeAvg;
return $this;
}
public function getUserInfo(): ?UserInfo
{
return $this->userInfo;
}
public function setUserInfo(?UserInfo $userInfo): self
{
$this->userInfo = $userInfo;
return $this;
}
public function getEduOrg(): ?EducationOrganization
{
return $this->eduOrg;
}
public function setEduOrg(?EducationOrganization $eduOrg): self
{
$this->eduOrg = $eduOrg;
return $this;
}
public function getDegree(): ?GlobalConstant
{
return $this->degree;
}
public function setDegree(?GlobalConstant $degree): self
{
$this->degree = $degree;
return $this;
}
public function getProfession(): ?string
{
return $this->profession;
}
public function setProfession(?string $profession): self
{
$this->profession = $profession;
return $this;
}
public function getCountry(): ?Country
{
return $this->country;
}
public function setCountry(?Country $country): self
{
$this->country = $country;
return $this;
}
public function getAddressing(): ?Addressing
{
return $this->addressing;
}
public function setAddressing(?Addressing $addressing): self
{
$this->addressing = $addressing;
return $this;
}
public function getCertificateNumber(): ?string
{
return $this->certificateNumber;
}
public function setCertificateNumber(?string $certificateNumber): self
{
$this->certificateNumber = $certificateNumber;
return $this;
}
}