src/Entity/Referentiel/BureauDistributeur.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Referentiel;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity
  6.  * @ORM\Table(name="efc.ref_bureau_distributeur")
  7.  */
  8. class BureauDistributeur {
  9. // <editor-fold defaultstate="collapsed" desc="Attributs privés">
  10.     /**
  11.      * @ORM\Column(type="integer")
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue(strategy="IDENTITY")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=70)
  18.      */
  19.     private $code_externe;
  20.     /**
  21.      * @ORM\Column(type="string", length=100)
  22.      */
  23.     private $libelle;
  24. // </editor-fold>
  25. // <editor-fold desc="Accesseurs">
  26. // 
  27.     /**
  28.      * Get id
  29.      *
  30.      * @return integer
  31.      */
  32.     public function getId() {
  33.         return $this->id;
  34.     }
  35.     /**
  36.      * Set codeExterne
  37.      *
  38.      * @param integer $codeExterne
  39.      *
  40.      * @return BureauDistributeur
  41.      */
  42.     public function setCodeExterne($codeExterne) {
  43.         $this->code_externe $codeExterne;
  44.         return $this;
  45.     }
  46.     /**
  47.      * Get codeExterne
  48.      *
  49.      * @return integer
  50.      */
  51.     public function getCodeExterne() {
  52.         return $this->code_externe;
  53.     }
  54.     /**
  55.      * Set libelle
  56.      *
  57.      * @param string $libelle
  58.      *
  59.      * @return BureauDistributeur
  60.      */
  61.     public function setLibelle($libelle) {
  62.         $this->libelle $libelle;
  63.         return $this;
  64.     }
  65.     /**
  66.      * Get libelle
  67.      *
  68.      * @return string
  69.      */
  70.     public function getLibelle() {
  71.         return $this->libelle;
  72.     }
  73.     /**
  74.      * Get bureaux_distributeurs
  75.      *
  76.      * @return \Doctrine\Common\Collections\Collection
  77.      */
  78.     public function getBureauxDistributeurs() {
  79.         return $this->bureaux_distributeurs;
  80.     }
  81. // </editor-fold>
  82. // <editor-fold desc="Méthodes publiques">
  83.     /**
  84.      * Constructor
  85.      */
  86.     public function __construct() {
  87.     }
  88.     /**
  89.      * Add bureau_distributeur
  90.      *
  91.      * @param BureauDistributeur $bureau_distributeur
  92.      *
  93.      * @return BureauDistributeur
  94.      */
  95.     public function addCommune(Commune $bureau_distributeur) {
  96.         $this->bureaux_distributeurs[] = $bureau_distributeur;
  97.         return $this;
  98.     }
  99.     /**
  100.      * Remove bureau_distributeur
  101.      *
  102.      * @param BureauDistributeur $bureau_distributeur
  103.      */
  104.     public function removeBureauDistributeur(BureauDistributeur $bureau_distributeur) {
  105.         $this->bureaux_distributeurs->removeElement($bureau_distributeur);
  106.     }
  107. // </editor-fold>
  108. }