src/Entity/Travaux.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TravauxRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. /**
  7.  * @ORM\Entity(repositoryClass=TravauxRepository::class)
  8.  */
  9. class Travaux
  10. {
  11.     /**
  12.      * @ORM\Id()
  13.      * @ORM\GeneratedValue()
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255, nullable=true)
  19.      * @Assert\Length(
  20.      *      max = 255,
  21.      *      maxMessage = "{{ limit }} caractères maximum"
  22.      * )
  23.      */
  24.     private $titre;
  25.     /**
  26.      * @ORM\Column(type="string", length=255, nullable=true)
  27.      */
  28.     private $typeVideo;
  29.     /**
  30.      * @ORM\Column(type="string", length=4, nullable=true)
  31.      * @Assert\Length(
  32.      *      max = 4,
  33.      *      maxMessage = "Format erroné"
  34.      * )
  35.      */
  36.     private $annee;
  37.     /**
  38.      * @ORM\Column(type="string", length=255, nullable=true)
  39.      * @Assert\Length(
  40.      *      max = 255,
  41.      *      maxMessage = "{{ limit }} caractères maximum"
  42.      * )
  43.      */
  44.     private $lienUrl;
  45.     /**
  46.      * @ORM\ManyToOne(targetEntity="App\Entity\ProductionCom", inversedBy="travaux")
  47.      * @ORM\JoinColumn(nullable=false)
  48.      */
  49.     private $productionCom;
  50.     public function getId(): ?int
  51.     {
  52.         return $this->id;
  53.     }
  54.     public function getTitre(): ?string
  55.     {
  56.         return $this->titre;
  57.     }
  58.     public function setTitre(?string $titre): self
  59.     {
  60.         $this->titre $titre;
  61.         return $this;
  62.     }
  63.     public function getTypeVideo(): ?string
  64.     {
  65.         return $this->typeVideo;
  66.     }
  67.     public function setTypeVideo(?string $typeVideo): self
  68.     {
  69.         $this->typeVideo $typeVideo;
  70.         return $this;
  71.     }
  72.     public function getAnnee(): ?string
  73.     {
  74.         return $this->annee;
  75.     }
  76.     public function setAnnee(?string $annee): self
  77.     {
  78.         $this->annee $annee;
  79.         return $this;
  80.     }
  81.     public function getLienUrl(): ?string
  82.     {
  83.         return $this->lienUrl;
  84.     }
  85.     public function setLienUrl(?string $lienUrl): self
  86.     {
  87.         $this->lienUrl $lienUrl;
  88.         return $this;
  89.     }
  90.     public function getProductionCom(): ?ProductionCom
  91.     {
  92.         return $this->productionCom;
  93.     }
  94.     public function setProductionCom(?ProductionCom $productionCom): self
  95.     {
  96.         $this->productionCom $productionCom;
  97.         return $this;
  98.     }
  99. }