<?php
namespace App\Entity;
use App\Repository\UserEmploymentRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: UserEmploymentRepository::class)]
class UserEmployment
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private ?int $id;
#[ORM\ManyToOne(targetEntity: UserInfo::class)]
private ?UserInfo $userInfo;
#[ORM\ManyToOne(targetEntity: GlobalConstant::class)]
#[ORM\JoinColumn(nullable: true, onDelete: 'SET NULL')]
private ?GlobalConstant $workSection;
#[ORM\Column(type: 'string', length: 255)]
private ?string $organizationName;
#[ORM\Column(type: 'string', length: 255)]
private ?string $city;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $region;
#[ORM\Column(type: 'string', length: 1000)]
private ?string $address;
#[ORM\Column(type: 'string', length: 255)]
private ?string $jobTitle;
public function getId(): ?int
{
return $this->id;
}
public function getUserInfo(): ?UserInfo
{
return $this->userInfo;
}
public function setUserInfo(?UserInfo $userInfo): self
{
$this->userInfo = $userInfo;
return $this;
}
public function getWorkSection(): ?GlobalConstant
{
return $this->workSection;
}
public function setWorkSection(?GlobalConstant $workSection): self
{
$this->workSection = $workSection;
return $this;
}
public function getOrganizationName(): ?string
{
return $this->organizationName;
}
public function setOrganizationName(string $organizationName): self
{
$this->organizationName = $organizationName;
return $this;
}
public function getJobTitle(): ?string
{
return $this->jobTitle;
}
public function setJobTitle(string $jobTitle): self
{
$this->jobTitle = $jobTitle;
return $this;
}
public function getCity(): ?string
{
return $this->city;
}
public function setCity(string $city): self
{
$this->city = $city;
return $this;
}
public function getRegion(): ?string
{
return $this->region;
}
public function setRegion(string $region): self
{
$this->region = $region;
return $this;
}
public function getAddress(): ?string
{
return $this->address;
}
public function setAddress(string $address): self
{
$this->address = $address;
return $this;
}
}