<?php
/**
* Langue.php
* Created by Stéphane Brun
* Date: 2018-09-13 at 14:27
*/
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity()
* @ORM\Table(name="langue")
*/
class Langue
{
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\Column(name="nom", type="string", length=255)
*/
protected $nom;
/**
* @ORM\OneToMany(targetEntity="Titre", mappedBy="langue")
*/
protected $title;
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @return mixed
*/
public function getNom()
{
return $this->nom;
}
/**
* @param mixed $nom
* @return Langue
*/
public function setNom($nom)
{
$this->nom = $nom;
return $this;
}
/**
* @return mixed
*/
public function getTitle()
{
return $this->title;
}
/**
* @param mixed $title
*/
public function setTitle($title): void
{
$this->title = $title;
}
}