src/Entity/Langue.php line 15

Open in your IDE?
  1. <?php
  2. /**
  3.  * Langue.php
  4.  * Created by Stéphane Brun
  5.  * Date: 2018-09-13 at 14:27
  6.  */
  7. namespace App\Entity;
  8. use Doctrine\ORM\Mapping as ORM;
  9. /**
  10.  * @ORM\Entity()
  11.  * @ORM\Table(name="langue")
  12.  */
  13. class Langue
  14. {
  15.     /**
  16.      * @ORM\Column(type="integer")
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="AUTO")
  19.      */
  20.     protected $id;
  21.     /**
  22.      * @ORM\Column(name="nom", type="string", length=255)
  23.      */
  24.     protected $nom;
  25.     /**
  26.      * @ORM\OneToMany(targetEntity="Titre", mappedBy="langue")
  27.      */
  28.     protected $title;
  29.     /**
  30.      * @return mixed
  31.      */
  32.     public function getId()
  33.     {
  34.         return $this->id;
  35.     }
  36.     /**
  37.      * @return mixed
  38.      */
  39.     public function getNom()
  40.     {
  41.         return $this->nom;
  42.     }
  43.     /**
  44.      * @param mixed $nom
  45.      * @return Langue
  46.      */
  47.     public function setNom($nom)
  48.     {
  49.         $this->nom $nom;
  50.         return $this;
  51.     }
  52.     /**
  53.      * @return mixed
  54.      */
  55.     public function getTitle()
  56.     {
  57.         return $this->title;
  58.     }
  59.     /**
  60.      * @param mixed $title
  61.      */
  62.     public function setTitle($title): void
  63.     {
  64.         $this->title $title;
  65.     }
  66. }