src/Entity/MateriauMobilier.php line 10

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