<?php
namespace App\Entity;
use App\Repository\FilmographieRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity(repositoryClass=FilmographieRepository::class)
*/
class Filmographie
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Assert\Length(
* max = 255,
* maxMessage = "{{ limit }} caractères maximum"
* )
*/
private $titre;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Assert\Length(
* max = 255,
* maxMessage = "{{ limit }} caractères maximum"
* )
*/
private $realisation;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Assert\Length(
* max = 255,
* maxMessage = "{{ limit }} caractères maximum"
* )
*/
private $genre;
/**
* @ORM\Column(type="string", length=4, nullable=true)
* @Assert\Length(
* max = 4,
* maxMessage = "Format erroné"
* )
*/
private $annee;
/**
* @ORM\Column(type="string", length=10, nullable=true)
* @Assert\Length(
* max = 10,
* maxMessage = "{{ limit }} caractères maximum"
* )
*/
private $duree;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Assert\Length(
* max = 255,
* maxMessage = "{{ limit }} caractères maximum"
* )
*/
private $coprod;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\ProductionCineAudio", inversedBy="filmographies")
* @ORM\JoinColumn(nullable=false)
*/
private $productionCineAudio;
public function getId(): ?int
{
return $this->id;
}
public function getTitre(): ?string
{
return $this->titre;
}
public function setTitre(?string $titre): self
{
$this->titre = $titre;
return $this;
}
public function getRealisation(): ?string
{
return $this->realisation;
}
public function setRealisation(?string $realisation): self
{
$this->realisation = $realisation;
return $this;
}
public function getGenre(): ?string
{
return $this->genre;
}
public function setGenre(?string $genre): self
{
$this->genre = $genre;
return $this;
}
public function getAnnee(): ?string
{
return $this->annee;
}
public function setAnnee(?string $annee): self
{
$this->annee = $annee;
return $this;
}
public function getDuree(): ?string
{
return $this->duree;
}
public function setDuree(?string $duree): self
{
$this->duree = $duree;
return $this;
}
public function getCoprod(): ?string
{
return $this->coprod;
}
public function setCoprod(?string $coprod): self
{
$this->coprod = $coprod;
return $this;
}
public function getProductionCineAudio(): ?ProductionCineAudio
{
return $this->productionCineAudio;
}
public function setProductionCineAudio(?ProductionCineAudio $productionCineAudio): self
{
$this->productionCineAudio = $productionCineAudio;
return $this;
}
}