src/Entity/RefGenre.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RefGenreRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. /**
  7.  * @ORM\Entity(repositoryClass=RefGenreRepository::class)
  8.  * @Gedmo\Loggable
  9.  */
  10. class RefGenre
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=20)
  20.      * @Gedmo\Versioned
  21.      */
  22.     private $genreLib;
  23.     /**
  24.      * @ORM\Column(type="string", length=10)
  25.      * @Gedmo\Versioned
  26.      */
  27.     private $genreLibCourt;
  28.     public function __toString()
  29.     {
  30.         return $this->getGenreLib();
  31.     }
  32.     public function getId(): ?int
  33.     {
  34.         return $this->id;
  35.     }
  36.     public function getGenreLib(): ?string
  37.     {
  38.         return $this->genreLib;
  39.     }
  40.     public function setGenreLib(string $genreLib): self
  41.     {
  42.         $this->genreLib $genreLib;
  43.         return $this;
  44.     }
  45.     public function getGenreLibCourt(): ?string
  46.     {
  47.         return $this->genreLibCourt;
  48.     }
  49.     public function setGenreLibCourt(string $genreLibCourt): self
  50.     {
  51.         $this->genreLibCourt $genreLibCourt;
  52.         return $this;
  53.     }
  54. }