src/Entity/UserEmployment.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\UserEmploymentRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassUserEmploymentRepository::class)]
  6. class UserEmployment
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private ?int $id;
  12.     #[ORM\ManyToOne(targetEntityUserInfo::class)]
  13.     private ?UserInfo $userInfo;
  14.     #[ORM\ManyToOne(targetEntityGlobalConstant::class)]
  15.     #[ORM\JoinColumn(nullabletrueonDelete'SET NULL')]
  16.     private ?GlobalConstant $workSection;
  17.     #[ORM\Column(type'string'length255)]
  18.     private ?string $organizationName;
  19.     #[ORM\Column(type'string'length255)]
  20.     private ?string $city;
  21.     #[ORM\Column(type'string'length255nullabletrue)]
  22.     private ?string $region;
  23.     #[ORM\Column(type'string'length1000)]
  24.     private ?string $address;
  25.     #[ORM\Column(type'string'length255)]
  26.     private ?string $jobTitle;
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getUserInfo(): ?UserInfo
  32.     {
  33.         return $this->userInfo;
  34.     }
  35.     public function setUserInfo(?UserInfo $userInfo): self
  36.     {
  37.         $this->userInfo $userInfo;
  38.         return $this;
  39.     }
  40.     public function getWorkSection(): ?GlobalConstant
  41.     {
  42.         return $this->workSection;
  43.     }
  44.     public function setWorkSection(?GlobalConstant $workSection): self
  45.     {
  46.         $this->workSection $workSection;
  47.         return $this;
  48.     }
  49.     public function getOrganizationName(): ?string
  50.     {
  51.         return $this->organizationName;
  52.     }
  53.     public function setOrganizationName(string $organizationName): self
  54.     {
  55.         $this->organizationName $organizationName;
  56.         return $this;
  57.     }
  58.     public function getJobTitle(): ?string
  59.     {
  60.         return $this->jobTitle;
  61.     }
  62.     public function setJobTitle(string $jobTitle): self
  63.     {
  64.         $this->jobTitle $jobTitle;
  65.         return $this;
  66.     }
  67.     public function getCity(): ?string
  68.     {
  69.         return $this->city;
  70.     }
  71.     public function setCity(string $city): self
  72.     {
  73.         $this->city $city;
  74.         return $this;
  75.     }
  76.     public function getRegion(): ?string
  77.     {
  78.         return $this->region;
  79.     }
  80.     public function setRegion(string $region): self
  81.     {
  82.         $this->region $region;
  83.         return $this;
  84.     }
  85.     public function getAddress(): ?string
  86.     {
  87.         return $this->address;
  88.     }
  89.     public function setAddress(string $address): self
  90.     {
  91.         $this->address $address;
  92.         return $this;
  93.     }
  94. }