src/Entity/Emplois.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Trait\CreatedAtTrait;
  4. use App\Repository\EmploisRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassEmploisRepository::class)]
  8. class Emplois
  9. {
  10.     use CreatedAtTrait;
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255)]
  16.     private ?string $name null;
  17.     #[ORM\Column(typeTypes::TEXT)]
  18.     private ?string $description null;
  19.     #[ORM\Column(length255)]
  20.     private ?string $slug null;
  21.     #[ORM\Column(nullabletrue)]
  22.     private ?bool $bannerAutorisation null;
  23.     #[ORM\Column(nullabletrue)]
  24.     private ?bool $homeAutorisation null;
  25.     #[ORM\Column(nullabletrue)]
  26.     private ?bool $publicityAutorisation null;
  27.     #[ORM\Column(length255)]
  28.     private ?string $whatsappPhone null;
  29.     #[ORM\ManyToOne(inversedBy'emplois')]
  30.     #[ORM\JoinColumn(nullablefalse)]
  31.     private ?Users $users null;
  32.     #[ORM\ManyToOne(inversedBy'emplois')]
  33.     #[ORM\JoinColumn(nullablefalse)]
  34.     private ?CategoriesEmplois $categoriesemplois null;
  35.     #[ORM\Column(length255)]
  36.     private ?string $emailEmploi null;
  37.     #[ORM\Column(length255)]
  38.     private ?string $ville null;
  39.     #[ORM\Column(length255)]
  40.     private ?string $pays null;
  41.     #[ORM\Column(typeTypes::TEXT)]
  42.     private ?string $imageFileName null;
  43.     public function __construct()
  44.     {
  45.         $this->created_at = new \DateTimeImmutable();
  46.     }
  47.     public function getId(): ?int
  48.     {
  49.         return $this->id;
  50.     }
  51.     public function getName(): ?string
  52.     {
  53.         return $this->name;
  54.     }
  55.     public function setName(string $name): static
  56.     {
  57.         $this->name $name;
  58.         return $this;
  59.     }
  60.     public function getDescription(): ?string
  61.     {
  62.         return $this->description;
  63.     }
  64.     public function setDescription(string $description): static
  65.     {
  66.         $this->description $description;
  67.         return $this;
  68.     }
  69.     public function getSlug(): ?string
  70.     {
  71.         return $this->slug;
  72.     }
  73.     public function setSlug(string $slug): static
  74.     {
  75.         $this->slug $slug;
  76.         return $this;
  77.     }
  78.     public function isBannerAutorisation(): ?bool
  79.     {
  80.         return $this->bannerAutorisation;
  81.     }
  82.     public function setBannerAutorisation(?bool $bannerAutorisation): static
  83.     {
  84.         $this->bannerAutorisation $bannerAutorisation;
  85.         return $this;
  86.     }
  87.     public function isHomeAutorisation(): ?bool
  88.     {
  89.         return $this->homeAutorisation;
  90.     }
  91.     public function setHomeAutorisation(?bool $homeAutorisation): static
  92.     {
  93.         $this->homeAutorisation $homeAutorisation;
  94.         return $this;
  95.     }
  96.     public function isPublicityAutorisation(): ?bool
  97.     {
  98.         return $this->publicityAutorisation;
  99.     }
  100.     public function setPublicityAutorisation(?bool $publicityAutorisation): static
  101.     {
  102.         $this->publicityAutorisation $publicityAutorisation;
  103.         return $this;
  104.     }
  105.     public function getWhatsappPhone(): ?string
  106.     {
  107.         return $this->whatsappPhone;
  108.     }
  109.     public function setWhatsappPhone(string $whatsappPhone): static
  110.     {
  111.         $this->whatsappPhone $whatsappPhone;
  112.         return $this;
  113.     }
  114.     public function getUsers(): ?Users
  115.     {
  116.         return $this->users;
  117.     }
  118.     public function setUsers(?Users $users): static
  119.     {
  120.         $this->users $users;
  121.         return $this;
  122.     }
  123.     public function getCategoriesemplois(): ?CategoriesEmplois
  124.     {
  125.         return $this->categoriesemplois;
  126.     }
  127.     public function setCategoriesemplois(?CategoriesEmplois $categoriesemplois): static
  128.     {
  129.         $this->categoriesemplois $categoriesemplois;
  130.         return $this;
  131.     }
  132.     public function getEmailEmploi(): ?string
  133.     {
  134.         return $this->emailEmploi;
  135.     }
  136.     public function setEmailEmploi(string $emailEmploi): static
  137.     {
  138.         $this->emailEmploi $emailEmploi;
  139.         return $this;
  140.     }
  141.     public function getVille(): ?string
  142.     {
  143.         return $this->ville;
  144.     }
  145.     public function setVille(string $ville): static
  146.     {
  147.         $this->ville $ville;
  148.         return $this;
  149.     }
  150.     public function getPays(): ?string
  151.     {
  152.         return $this->pays;
  153.     }
  154.     public function setPays(string $pays): static
  155.     {
  156.         $this->pays $pays;
  157.         return $this;
  158.     }
  159.     public function getImageFileName(): ?string
  160.     {
  161.         return $this->imageFileName;
  162.     }
  163.     public function setImageFileName(string $imageFileName): static
  164.     {
  165.         $this->imageFileName $imageFileName;
  166.         return $this;
  167.     }
  168. }