src/Entity/Action.php line 8

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. /**
  4.  * Action.
  5.  */
  6. class Action
  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 $rang;
  28.     /**
  29.      * @var int
  30.      */
  31.     private $idBdOrigine;
  32.     /**
  33.      * @var \Doctrine\Common\Collections\Collection
  34.      */
  35.     private $RealisationAction;
  36.     /**
  37.      * Constructor.
  38.      */
  39.     public function __construct()
  40.     {
  41.         $this->RealisationAction = new \Doctrine\Common\Collections\ArrayCollection();
  42.     }
  43.     /**
  44.      * @return string
  45.      */
  46.     public function __toString()
  47.     {
  48.         return $this->titre;
  49.     }
  50.     /**
  51.      * Get id.
  52.      *
  53.      * @return int
  54.      */
  55.     public function getId()
  56.     {
  57.         return $this->id;
  58.     }
  59.     /**
  60.      * Set code.
  61.      *
  62.      * @param string $code
  63.      *
  64.      * @return Action
  65.      */
  66.     public function setCode($code)
  67.     {
  68.         $this->code $code;
  69.         return $this;
  70.     }
  71.     /**
  72.      * Get code.
  73.      *
  74.      * @return string
  75.      */
  76.     public function getCode()
  77.     {
  78.         return $this->code;
  79.     }
  80.     /**
  81.      * Set titre.
  82.      *
  83.      * @param string $titre
  84.      *
  85.      * @return Action
  86.      */
  87.     public function setTitre($titre)
  88.     {
  89.         $this->titre $titre;
  90.         return $this;
  91.     }
  92.     /**
  93.      * Get titre.
  94.      *
  95.      * @return string
  96.      */
  97.     public function getTitre()
  98.     {
  99.         return $this->titre;
  100.     }
  101.     /**
  102.      * Set description.
  103.      *
  104.      * @param string $description
  105.      *
  106.      * @return Action
  107.      */
  108.     public function setDescription($description)
  109.     {
  110.         $this->description $description;
  111.         return $this;
  112.     }
  113.     /**
  114.      * Get description.
  115.      *
  116.      * @return string
  117.      */
  118.     public function getDescription()
  119.     {
  120.         return $this->description;
  121.     }
  122.     /**
  123.      * Set rang.
  124.      *
  125.      * @param int $rang
  126.      *
  127.      * @return Action
  128.      */
  129.     public function setRang($rang)
  130.     {
  131.         $this->rang $rang;
  132.         return $this;
  133.     }
  134.     /**
  135.      * Get rang.
  136.      *
  137.      * @return int
  138.      */
  139.     public function getRang()
  140.     {
  141.         return $this->rang;
  142.     }
  143.     /**
  144.      * Set idBdOrigine.
  145.      *
  146.      * @param int $idBdOrigine
  147.      *
  148.      * @return Action
  149.      */
  150.     public function setIdBdOrigine($idBdOrigine)
  151.     {
  152.         $this->idBdOrigine $idBdOrigine;
  153.         return $this;
  154.     }
  155.     /**
  156.      * Get idBdOrigine.
  157.      *
  158.      * @return int
  159.      */
  160.     public function getIdBdOrigine()
  161.     {
  162.         return $this->idBdOrigine;
  163.     }
  164.     /**
  165.      * Add realisationAction.
  166.      *
  167.      * @param \App\Entity\RealisationAction $realisationAction
  168.      *
  169.      * @return Action
  170.      */
  171.     public function addRealisationAction(RealisationAction $realisationAction)
  172.     {
  173.         $this->RealisationAction[] = $realisationAction;
  174.         return $this;
  175.     }
  176.     /**
  177.      * Remove realisationAction.
  178.      *
  179.      * @param \App\Entity\RealisationAction $realisationAction
  180.      */
  181.     public function removeRealisationAction(RealisationAction $realisationAction)
  182.     {
  183.         $this->RealisationAction->removeElement($realisationAction);
  184.     }
  185.     /**
  186.      * Get realisationAction.
  187.      *
  188.      * @return \Doctrine\Common\Collections\Collection
  189.      */
  190.     public function getRealisationAction()
  191.     {
  192.         return $this->RealisationAction;
  193.     }
  194. }