src/Entity/OffreDEmploi.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\OffreDEmploiRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. /**
  7.  * @ORM\Entity(repositoryClass=OffreDEmploiRepository::class)
  8.  */
  9. class OffreDEmploi
  10. {
  11.     /**
  12.     * @Gedmo\Slug(fields={"titre", "id"})
  13.     * @ORM\Column(length=128, unique=true)
  14.     */
  15.     private $slug;
  16.     /**
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue
  19.      * @ORM\Column(type="integer")
  20.      */
  21.     private $id;
  22.     /**
  23.      * @ORM\Column(type="string", length=255, nullable=true)
  24.      */
  25.     private $titre;
  26.     /**
  27.      * @ORM\Column(type="text", nullable=true)
  28.      */
  29.     private $contenu;
  30.     /**
  31.      * @ORM\Column(type="integer", nullable=true)
  32.      */
  33.     private $nombreDeVue;
  34.     /**
  35.      * @ORM\Column(type="boolean", nullable=true)
  36.      */
  37.     private $disponible;
  38.     /**
  39.      * @ORM\Column(type="string", length=255, nullable=true)
  40.      */
  41.     private $secteur;
  42.     /**
  43.      * @ORM\Column(type="string", length=255, nullable=true)
  44.      */
  45.     private $lieu;
  46.     /**
  47.      * @ORM\Column(type="string", length=255, nullable=true)
  48.      */
  49.     private $niveau;
  50.     /**
  51.      * @ORM\Column(type="date",  nullable=true)
  52.      */
  53.     private $dateLimite;
  54.     /**
  55.      * @ORM\Column(type="datetime", nullable=true)
  56.      */
  57.     private $laDate;
  58.     public function __construct(){
  59.         $this->disponible = true;
  60.         $this->laDate = new \DateTime();
  61.     }
  62.     public function getId(): ?int
  63.     {
  64.         return $this->id;
  65.     }
  66.     public function getTitre(): ?string
  67.     {
  68.         return $this->titre;
  69.     }
  70.     public function setTitre(?string $titre): self
  71.     {
  72.         $this->titre = $titre;
  73.         return $this;
  74.     }
  75.     public function getContenu(): ?string
  76.     {
  77.         return $this->contenu;
  78.     }
  79.     public function setContenu(?string $contenu): self
  80.     {
  81.         $this->contenu = $contenu;
  82.         return $this;
  83.     }
  84.     public function getNombreDeVue(): ?int
  85.     {
  86.         return $this->nombreDeVue;
  87.     }
  88.     public function setNombreDeVue(?int $nombreDeVue): self
  89.     {
  90.         $this->nombreDeVue = $nombreDeVue;
  91.         return $this;
  92.     }
  93.     public function isDisponible(): ?bool
  94.     {
  95.         return $this->disponible;
  96.     }
  97.     public function setDisponible(?bool $disponible): self
  98.     {
  99.         $this->disponible = $disponible;
  100.         return $this;
  101.     }
  102.     public function getSlug(): ?string
  103.     {
  104.         return $this->slug;
  105.     }
  106.     public function setSlug(string $slug): self
  107.     {
  108.         $this->slug = $slug;
  109.         return $this;
  110.     }
  111.     public function getLaDate(): ?\DateTimeInterface
  112.     {
  113.         return $this->laDate;
  114.     }
  115.     public function setLaDate(?\DateTimeInterface $laDate): self
  116.     {
  117.         $this->laDate = $laDate;
  118.         return $this;
  119.     }
  120.     public function getSecteur(): ?string
  121.     {
  122.         return $this->secteur;
  123.     }
  124.     public function setSecteur(?string $secteur): self
  125.     {
  126.         $this->secteur = $secteur;
  127.         return $this;
  128.     }
  129.     public function getLieu(): ?string
  130.     {
  131.         return $this->lieu;
  132.     }
  133.     public function setLieu(?string $lieu): self
  134.     {
  135.         $this->lieu = $lieu;
  136.         return $this;
  137.     }
  138.     public function getNiveau(): ?string
  139.     {
  140.         return $this->niveau;
  141.     }
  142.     public function setNiveau(?string $niveau): self
  143.     {
  144.         $this->niveau = $niveau;
  145.         return $this;
  146.     }
  147.     public function getDateLimite(): ?\DateTimeInterface
  148.     {
  149.         return $this->dateLimite;
  150.     }
  151.     public function setDateLimite(?\DateTimeInterface $dateLimite): self
  152.     {
  153.         $this->dateLimite = $dateLimite;
  154.         return $this;
  155.     }
  156. }