src/Entity/AvailableJobs.php line 15

  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Trait\MainTranslationTrait;
  4. use App\Entity\Translation\AvailableJobsTranslation;
  5. use App\Repository\AvailableJobsRepository;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Gedmo\Mapping\Annotation as Gedmo;
  8. use Gedmo\Translatable\Translatable;
  9. #[ORM\Table(name'available_jobs')]
  10. #[ORM\Entity(repositoryClassAvailableJobsRepository::class)]
  11. #[Gedmo\TranslationEntity(class: AvailableJobsTranslation::class)]
  12. class AvailableJobs implements Translatable
  13. {
  14.     use MainTranslationTrait;
  15.     const TRANSLATION_ENTITY AvailableJobsTranslation::class;
  16.     #[ORM\Id]
  17.     #[ORM\GeneratedValue]
  18.     #[ORM\Column]
  19.     private ?int $id null;
  20.     #[ORM\Column(type'string'nullabletrue)]
  21.     #[Gedmo\Translatable]
  22.     private ?string $title null;
  23.     #[ORM\Column(type'string',uniquetrue)]
  24.     #[Gedmo\Slug(fields: ['title'])]
  25.     private string $slug;
  26.     #[ORM\Column(type'text'nullabletrue)]
  27.     #[Gedmo\Translatable]
  28.     private ?string $description null;
  29.     #[ORM\Column(type'text'nullabletrue)]
  30.     #[Gedmo\Translatable]
  31.     private ?string $body null;
  32.     #[ORM\Column(type'string'nullabletrue)]
  33.     #[Gedmo\Translatable]
  34.     private ?string $specialistPosition null;
  35.     #[ORM\Column(type'string'nullabletrue)]
  36.     #[Gedmo\Translatable]
  37.     private ?string $workType null;
  38.     #[ORM\Column(type'date'nullabletrue)]
  39.     #[Gedmo\Translatable]
  40.     private mixed $deadLine null;
  41.     #[ORM\Column(type'string',length160nullabletrue)]
  42.     #[Gedmo\Translatable]
  43.     private ?string $metaKeywords null;
  44.     #[ORM\Column(type'string',length160nullabletrue)]
  45.     #[Gedmo\Translatable]
  46.     private ?string $metaDescription null;
  47.     public function getId(): ?int
  48.     {
  49.         return $this->id;
  50.     }
  51.     public function __toString(): string
  52.     {
  53.         return $this->title ?? "";
  54.     }
  55.     public function getTitle(): ?string
  56.     {
  57.         return $this->title;
  58.     }
  59.     public function setTitle(?string $title): void
  60.     {
  61.         $this->title $title;
  62.     }
  63.     public function getDescription(): ?string
  64.     {
  65.         return $this->description;
  66.     }
  67.     public function setDescription(?string $description): void
  68.     {
  69.         $this->description $description;
  70.     }
  71.     public function getBody(): ?string
  72.     {
  73.         return $this->body;
  74.     }
  75.     public function setBody(?string $body): void
  76.     {
  77.         $this->body $body;
  78.     }
  79.     public function getSpecialistPosition(): ?string
  80.     {
  81.         return $this->specialistPosition;
  82.     }
  83.     public function setSpecialistPosition(?string $specialistPosition): void
  84.     {
  85.         $this->specialistPosition $specialistPosition;
  86.     }
  87.     public function getWorkType(): ?string
  88.     {
  89.         return $this->workType;
  90.     }
  91.     public function setWorkType(?string $workType): void
  92.     {
  93.         $this->workType $workType;
  94.     }
  95.     public function getDeadLine(): mixed
  96.     {
  97.         return $this->deadLine;
  98.     }
  99.     public function setDeadLine(mixed $deadLine): void
  100.     {
  101.         $this->deadLine $deadLine;
  102.     }
  103.     public function getSlug(): string
  104.     {
  105.         return $this->slug;
  106.     }
  107.     public function setSlug(string $slug): void
  108.     {
  109.         $this->slug $slug;
  110.     }
  111.     public function getMetaKeywords(): ?string
  112.     {
  113.         return $this->metaKeywords;
  114.     }
  115.     public function setMetaKeywords(?string $metaKeywords): void
  116.     {
  117.         $this->metaKeywords $metaKeywords;
  118.     }
  119.     public function getMetaDescription(): ?string
  120.     {
  121.         return $this->metaDescription;
  122.     }
  123.     public function setMetaDescription(?string $metaDescription): void
  124.     {
  125.         $this->metaDescription $metaDescription;
  126.     }
  127. }