src/Entity/StaffWorkExperience.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\StaffWorkExperienceRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. use Symfony\Component\Validator\Constraints as Assert;
  7. #[ORM\Entity(repositoryClassStaffWorkExperienceRepository::class), ORM\Table(name'staff_work_experiences')]
  8. class StaffWorkExperience
  9. {
  10.     #[ORM\IdORM\GeneratedValueORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\ManyToOne(targetEntityDesignationSetting::class), ORM\JoinColumn(name'designation_from_id'nullablefalse)]
  13.     #[Assert\NotBlank]
  14.     private $postingType;
  15.     #[ORM\ManyToOne(targetEntityDesignationSetting::class), ORM\JoinColumn(name'designation_to_id'nullablefalse)]
  16.     #[Assert\NotBlank]
  17.     private $promotedAs;
  18.     #[ORM\Column(type'date'), Assert\NotBlank]
  19.     private $doj;
  20.     #[ORM\Column(type'date'), Assert\NotBlank]
  21.     private $dojPresent;
  22.     #[ORM\Column(type'string'length100nullabletrue)]
  23.     private $transPromOrder;
  24.     #[ORM\Column(type'string'length100nullabletrue)]
  25.     private $retireOrder;
  26.     #[Gedmo\Timestampable(on'create'), ORM\Column(type'datetime')]
  27.     private $createdAt;
  28.     #[Gedmo\Timestampable(on'update'), ORM\Column(type'datetime')]
  29.     private $updatedAt;
  30.     #[ORM\ManyToOne(targetEntityStaffProfile::class, inversedBy'workExperiences'), ORM\JoinColumn(nullablefalse)]
  31.     private $profile;
  32.     public function getId(): ?int
  33.     {
  34.         return $this->id;
  35.     }
  36.     public function getPostingType(): ?DesignationSetting
  37.     {
  38.         return $this->postingType;
  39.     }
  40.     public function setPostingType(DesignationSetting $postingType): self
  41.     {
  42.         $this->postingType $postingType;
  43.         return $this;
  44.     }
  45.     public function getPromotedAs(): ?DesignationSetting
  46.     {
  47.         return $this->promotedAs;
  48.     }
  49.     public function setPromotedAs(DesignationSetting $promotedAs): self
  50.     {
  51.         $this->promotedAs $promotedAs;
  52.         return $this;
  53.     }
  54.     public function getDoj(): ?\DateTimeInterface
  55.     {
  56.         return $this->doj;
  57.     }
  58.     public function setDoj(\DateTimeInterface $doj): self
  59.     {
  60.         $this->doj $doj;
  61.         return $this;
  62.     }
  63.     public function getDojPresent(): ?\DateTimeInterface
  64.     {
  65.         return $this->dojPresent;
  66.     }
  67.     public function setDojPresent(\DateTimeInterface $dojPresent): self
  68.     {
  69.         $this->dojPresent $dojPresent;
  70.         return $this;
  71.     }
  72.     public function getTransPromOrder(): ?string
  73.     {
  74.         return $this->transPromOrder;
  75.     }
  76.     public function setTransPromOrder(?string $transPromOrder): self
  77.     {
  78.         $this->transPromOrder $transPromOrder;
  79.         return $this;
  80.     }
  81.     public function getRetireOrder(): ?string
  82.     {
  83.         return $this->retireOrder;
  84.     }
  85.     public function setRetireOrder(?string $retireOrder): self
  86.     {
  87.         $this->retireOrder $retireOrder;
  88.         return $this;
  89.     }
  90.     public function getCreatedAt(): ?\DateTimeInterface
  91.     {
  92.         return $this->createdAt;
  93.     }
  94.     public function getUpdatedAt(): ?\DateTimeInterface
  95.     {
  96.         return $this->updatedAt;
  97.     }
  98.     public function getProfile(): ?StaffProfile
  99.     {
  100.         return $this->profile;
  101.     }
  102.     public function setProfile(?StaffProfile $profile): self
  103.     {
  104.         $this->profile $profile;
  105.         return $this;
  106.     }
  107. }