src/Entity/ArticleAide.php line 18

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  7. use Symfony\Component\Validator\Constraints as Assert;
  8. use Gedmo\Mapping\Annotation as Gedmo;
  9. /**
  10.  * @ORM\Entity(repositoryClass="App\Repository\ArticleAideRepository")
  11.  * @ORM\Table(name="article_aide")
  12.  * @ORM\HasLifecycleCallbacks()
  13.  *
  14.  */
  15. class ArticleAide
  16. {
  17.    
  18.     /**
  19.     * @Gedmo\Slug(fields={"titre"})
  20.     * @ORM\Column(length=128, unique=true)
  21.     */
  22.     private $slug;
  23.     
  24.     
  25.     /**
  26.      * @ORM\ManyToOne(targetEntity="App\Entity\CategorieArticleAide")
  27.      */
  28.     private $categorie;
  29.     
  30.     
  31.     /**
  32.      * @var integer
  33.      *
  34.      * @ORM\Column(name="id", type="integer")
  35.      * @ORM\Id
  36.      * @ORM\GeneratedValue(strategy="AUTO")
  37.      */
  38.     private $id;
  39.     /**
  40.      * @var string
  41.      *
  42.      * @ORM\Column(name="titre", type="string", length=255)
  43.      */
  44.     private $titre
  45.     
  46.     /**
  47.      * @var string
  48.      *
  49.      * @ORM\Column(name="langue", type="string", length=255, nullable=true)
  50.      */
  51.     private $langue;
  52.     /**
  53.      * @var string
  54.      *
  55.      * @ORM\Column(name="contenu", type="text")
  56.      */
  57.     private $contenu;
  58.     /**
  59.      * @var \DateTime
  60.      *
  61.      * @ORM\Column(name="laDate", type="datetime")
  62.      */
  63.     private $laDate;
  64.    
  65.     public function __construct()
  66.     {
  67.         $this->laDate = new \DateTime();
  68.     }
  69.     
  70.     
  71.     /**
  72.      * Get id
  73.      *
  74.      * @return integer 
  75.      */
  76.     public function getId()
  77.     {
  78.         return $this->id;
  79.     }
  80.     /**
  81.      * Set titre
  82.      *
  83.      * @param string $titre
  84.      * @return Article
  85.      */
  86.     public function setTitre($titre)
  87.     {
  88.         $this->titre $titre;
  89.         return $this;
  90.     }
  91.     /**
  92.      * Get titre
  93.      *
  94.      * @return string 
  95.      */
  96.     public function getTitre()
  97.     {
  98.         return $this->titre;
  99.     }
  100.     /**
  101.      * Set langue
  102.      *
  103.      * @param string $langue
  104.      * @return Article
  105.      */
  106.     public function setLangue($langue)
  107.     {
  108.         $this->langue $langue;
  109.         return $this;
  110.     }
  111.     /**
  112.      * Get langue
  113.      *
  114.      * @return string 
  115.      */
  116.     public function getLangue()
  117.     {
  118.         return $this->langue;
  119.     }
  120.     
  121.     /**
  122.      * Set contenu
  123.      *
  124.      * @param string $contenu
  125.      * @return Article
  126.      */
  127.     public function setContenu($contenu)
  128.     {
  129.         $this->contenu $contenu;
  130.         return $this;
  131.     }
  132.     /**
  133.      * Get contenu
  134.      *
  135.      * @return string 
  136.      */
  137.     public function getContenu()
  138.     {
  139.         return $this->contenu;
  140.     }
  141.     /**
  142.      * Set slug
  143.      *
  144.      * @param string $slug
  145.      * @return Article
  146.      */
  147.     public function setSlug($slug)
  148.     {
  149.         $this->slug $slug;
  150.         return $this;
  151.     }
  152.     /**
  153.      * Get slug
  154.      *
  155.      * @return string 
  156.      */
  157.     public function getSlug()
  158.     {
  159.         return $this->slug;
  160.     }
  161.    
  162.     /**
  163.      * Set categorie
  164.      *
  165.      * @param \App\Entity\CategorieArticleAide $categorie
  166.      * @return Article
  167.      */
  168.     public function setCategorie(CategorieArticleAide $categorie null)
  169.     {
  170.         $this->categorie $categorie;
  171.         return $this;
  172.     }
  173.     /**
  174.      * Get categorie
  175.      *
  176.      * @return \App\Entity\CategorieArticleAide 
  177.      */
  178.     public function getCategorie()
  179.     {
  180.         return $this->categorie;
  181.     }
  182.     
  183. }