src/Entity/JobConfiguration/JobTranslation.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\JobConfiguration;
  3. use App\Repository\JobConfiguration\JobTranslationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Knp\DoctrineBehaviors\Model as ORMBehaviors;
  6. use Symfony\Component\Serializer\Annotation\Groups;
  7. /**
  8.  * @ORM\Entity(repositoryClass=JobTranslationRepository::class)
  9.  * @ORM\HasLifecycleCallbacks()
  10.  */
  11. class JobTranslation
  12. {
  13.     use ORMBehaviors\Translatable\Translation;
  14.     
  15.     /**
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue
  18.      * @ORM\Column(type="integer")
  19.      */
  20.     protected $id;
  21.     
  22.     /**
  23.      * @ORM\ManyToOne(targetEntity=Job::class, inversedBy="translations", cascade={"persist"})
  24.      */
  25.     protected $translatable;
  26.     
  27.     /**
  28.      * @var string
  29.      * @ORM\Column(type="string")
  30.      */
  31.     protected $locale;
  32.     /**
  33.      * @ORM\Column(type="string", length=255)
  34.      * @Groups({"badge_cv"})
  35.      */
  36.     private $title;
  37.     /**
  38.      * @ORM\Column(type="text", nullable=true)
  39.      */
  40.     private $abstract;
  41.     /**
  42.      * @ORM\Column(type="text", nullable=true)
  43.      */
  44.     private $link;
  45.     /**
  46.      * @ORM\Column(type="text", nullable=true)
  47.      */
  48.     private $jobRole;
  49.     /**
  50.      * @ORM\Column(type="text", nullable=true)
  51.      */
  52.     private $transversalSkills;
  53.     public function getId(): ?int
  54.     {
  55.         return $this->id;
  56.     }
  57.     public function getTitle(): ?string
  58.     {
  59.         return $this->title;
  60.     }
  61.     public function setTitle(string $title): self
  62.     {
  63.         $this->title $title;
  64.         return $this;
  65.     }
  66.     public function getAbstract(): ?string
  67.     {
  68.         return $this->abstract;
  69.     }
  70.     public function setAbstract(?string $abstract): self
  71.     {
  72.         $this->abstract $abstract;
  73.         return $this;
  74.     }
  75.     public function getLink(): ?string
  76.     {
  77.         return $this->link;
  78.     }
  79.     public function setLink(?string $link): self
  80.     {
  81.         $this->link $link;
  82.         return $this;
  83.     }
  84.     public function getJobRole(): ?string
  85.     {
  86.         return $this->jobRole;
  87.     }
  88.     public function setJobRole(?string $jobRole): self
  89.     {
  90.         $this->jobRole $jobRole;
  91.         return $this;
  92.     }
  93.     public function getTransversalSkills(): ?string
  94.     {
  95.         return $this->transversalSkills;
  96.     }
  97.     public function setTransversalSkills(?string $transversalSkills): self
  98.     {
  99.         $this->transversalSkills $transversalSkills;
  100.         return $this;
  101.     }
  102. }