src/Entity/TypePiece.php line 8

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