src/Entity/Actualite.php line 8

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. /**
  4.  * Actualite.
  5.  */
  6. class Actualite
  7. {
  8.     /**
  9.      * @var int
  10.      */
  11.     private $id;
  12.     /**
  13.      * @var string
  14.      */
  15.     private $code;
  16.     /**
  17.      * @var string
  18.      */
  19.     private $titre;
  20.     /**
  21.      * @var string
  22.      */
  23.     private $description;
  24.     /**
  25.      * @var int
  26.      */
  27.     private $ordre;
  28.     /**
  29.      * @var \DateTime
  30.      */
  31.     private $datePublication;
  32.     /**
  33.      * @var bool
  34.      */
  35.     private $statutPublication;
  36.     /**
  37.      * @var \DateTime
  38.      */
  39.     private $createdAt;
  40.     /**
  41.      * @var \DateTime
  42.      */
  43.     private $updatedAt;
  44.     /**
  45.      * Get id.
  46.      *
  47.      * @return int
  48.      */
  49.     public function getId()
  50.     {
  51.         return $this->id;
  52.     }
  53.     /**
  54.      * Set code.
  55.      *
  56.      * @param string $code
  57.      *
  58.      * @return Actualite
  59.      */
  60.     public function setCode($code)
  61.     {
  62.         $this->code $code;
  63.         return $this;
  64.     }
  65.     /**
  66.      * Get code.
  67.      *
  68.      * @return string
  69.      */
  70.     public function getCode()
  71.     {
  72.         return $this->code;
  73.     }
  74.     /**
  75.      * Set titre.
  76.      *
  77.      * @param string $titre
  78.      *
  79.      * @return Actualite
  80.      */
  81.     public function setTitre($titre)
  82.     {
  83.         $this->titre $titre;
  84.         return $this;
  85.     }
  86.     /**
  87.      * Get titre.
  88.      *
  89.      * @return string
  90.      */
  91.     public function getTitre()
  92.     {
  93.         return $this->titre;
  94.     }
  95.     /**
  96.      * Set description.
  97.      *
  98.      * @param string $description
  99.      *
  100.      * @return Actualite
  101.      */
  102.     public function setDescription($description)
  103.     {
  104.         $this->description $description;
  105.         return $this;
  106.     }
  107.     /**
  108.      * Get description.
  109.      *
  110.      * @return string
  111.      */
  112.     public function getDescription()
  113.     {
  114.         return $this->description;
  115.     }
  116.     /**
  117.      * Set ordre.
  118.      *
  119.      * @param int $ordre
  120.      *
  121.      * @return Actualite
  122.      */
  123.     public function setOrdre($ordre)
  124.     {
  125.         $this->ordre $ordre;
  126.         return $this;
  127.     }
  128.     /**
  129.      * Get ordre.
  130.      *
  131.      * @return int
  132.      */
  133.     public function getOrdre()
  134.     {
  135.         return $this->ordre;
  136.     }
  137.     /**
  138.      * Set datePublication.
  139.      *
  140.      * @param \DateTime $datePublication
  141.      *
  142.      * @return Actualite
  143.      */
  144.     public function setDatePublication($datePublication)
  145.     {
  146.         $this->datePublication $datePublication;
  147.         return $this;
  148.     }
  149.     /**
  150.      * Get datePublication.
  151.      *
  152.      * @return \DateTime
  153.      */
  154.     public function getDatePublication()
  155.     {
  156.         return $this->datePublication;
  157.     }
  158.     /**
  159.      * Set statutPublication.
  160.      *
  161.      * @param bool $statutPublication
  162.      *
  163.      * @return Actualite
  164.      */
  165.     public function setStatutPublication($statutPublication)
  166.     {
  167.         $this->statutPublication $statutPublication;
  168.         return $this;
  169.     }
  170.     /**
  171.      * Get statutPublication.
  172.      *
  173.      * @return bool
  174.      */
  175.     public function getStatutPublication()
  176.     {
  177.         return $this->statutPublication;
  178.     }
  179.     /**
  180.      * Set createdAt.
  181.      *
  182.      * @param \DateTime $createdAt
  183.      *
  184.      * @return Actualite
  185.      */
  186.     public function setCreatedAt($createdAt)
  187.     {
  188.         $this->createdAt $createdAt;
  189.         return $this;
  190.     }
  191.     /**
  192.      * Get createdAt.
  193.      *
  194.      * @return \DateTime
  195.      */
  196.     public function getCreatedAt()
  197.     {
  198.         return $this->createdAt;
  199.     }
  200.     /**
  201.      * Set updatedAt.
  202.      *
  203.      * @param \DateTime $updatedAt
  204.      *
  205.      * @return Actualite
  206.      */
  207.     public function setUpdatedAt($updatedAt)
  208.     {
  209.         $this->updatedAt $updatedAt;
  210.         return $this;
  211.     }
  212.     /**
  213.      * Get updatedAt.
  214.      *
  215.      * @return \DateTime
  216.      */
  217.     public function getUpdatedAt()
  218.     {
  219.         return $this->updatedAt;
  220.     }
  221.     public function isStatutPublication(): ?bool
  222.     {
  223.         return $this->statutPublication;
  224.     }
  225. }