src/Entity/SpecieArea.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * SpecieArea
  6.  *
  7.  * @ORM\Table(name="specie_area")
  8.  * @ORM\Entity
  9.  */
  10. class SpecieArea
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(name="libelle", type="string", length=255, nullable=false)
  24.      */
  25.     private $libelle;
  26.     public function __toString() { return $this->libelle;}
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getLibelle(): ?string
  32.     {
  33.         return $this->libelle;
  34.     }
  35.     public function setLibelle(string $libelle): self
  36.     {
  37.         $this->libelle $libelle;
  38.         return $this;
  39.     }
  40. }