<?php
namespace App\Entity;
use App\Repository\TravauxRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity(repositoryClass=TravauxRepository::class)
*/
class Travaux
{
/**
* @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)
*/
private $typeVideo;
/**
* @ORM\Column(type="string", length=4, nullable=true)
* @Assert\Length(
* max = 4,
* maxMessage = "Format erroné"
* )
*/
private $annee;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Assert\Length(
* max = 255,
* maxMessage = "{{ limit }} caractères maximum"
* )
*/
private $lienUrl;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\ProductionCom", inversedBy="travaux")
* @ORM\JoinColumn(nullable=false)
*/
private $productionCom;
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 getTypeVideo(): ?string
{
return $this->typeVideo;
}
public function setTypeVideo(?string $typeVideo): self
{
$this->typeVideo = $typeVideo;
return $this;
}
public function getAnnee(): ?string
{
return $this->annee;
}
public function setAnnee(?string $annee): self
{
$this->annee = $annee;
return $this;
}
public function getLienUrl(): ?string
{
return $this->lienUrl;
}
public function setLienUrl(?string $lienUrl): self
{
$this->lienUrl = $lienUrl;
return $this;
}
public function getProductionCom(): ?ProductionCom
{
return $this->productionCom;
}
public function setProductionCom(?ProductionCom $productionCom): self
{
$this->productionCom = $productionCom;
return $this;
}
}