src/Entity/PrestataireTechniqueExperience.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PrestataireTechniqueExperienceRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. /**
  7.  * @ORM\Entity(repositoryClass=PrestataireTechniqueExperienceRepository::class)
  8.  */
  9. class PrestataireTechniqueExperience
  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.      * @Assert\Length(
  28.      *      max = 255,
  29.      *      maxMessage = "{{ limit }} caractères maximum"
  30.      * )
  31.      */
  32.     private $categorie;
  33.     /**
  34.      * @ORM\Column(type="string", length=255, nullable=true)
  35.      * @Assert\Length(
  36.      *      max = 255,
  37.      *      maxMessage = "{{ limit }} caractères maximum"
  38.      * )
  39.      */
  40.     private $format;
  41.     /**
  42.      * @ORM\Column(type="string", length=255, nullable=true)
  43.      * @Assert\Length(
  44.      *      max = 255,
  45.      *      maxMessage = "{{ limit }} caractères maximum"
  46.      * )
  47.      */
  48.     private $production;
  49.     /**
  50.      * @ORM\Column(type="string", length=4, nullable=true)
  51.      * @Assert\Length(
  52.      *      max = 4,
  53.      *      maxMessage = "Format erroné"
  54.      * )
  55.      */
  56.     private $annee;
  57.     /**
  58.      * @ORM\Column(type="string", length=255, nullable=true)
  59.      * @Assert\Length(
  60.      *      max = 255,
  61.      *      maxMessage = "{{ limit }} caractères maximum"
  62.      * )
  63.      */
  64.     private $realisation;
  65.     /**
  66.      * @ORM\ManyToOne(targetEntity="App\Entity\PrestataireTechnique", inversedBy="prestataireTechniqueExperiences")
  67.      */
  68.     private $prestataireTechnique;
  69.     public function getId(): ?int
  70.     {
  71.         return $this->id;
  72.     }
  73.     public function getTitre(): ?string
  74.     {
  75.         return $this->titre;
  76.     }
  77.     public function setTitre(?string $titre): self
  78.     {
  79.         $this->titre $titre;
  80.         return $this;
  81.     }
  82.     public function getCategorie(): ?string
  83.     {
  84.         return $this->categorie;
  85.     }
  86.     public function setCategorie(?string $categorie): self
  87.     {
  88.         $this->categorie $categorie;
  89.         return $this;
  90.     }
  91.     public function getFormat(): ?string
  92.     {
  93.         return $this->format;
  94.     }
  95.     public function setFormat(?string $format): self
  96.     {
  97.         $this->format $format;
  98.         return $this;
  99.     }
  100.     public function getProduction(): ?string
  101.     {
  102.         return $this->production;
  103.     }
  104.     public function setProduction(?string $production): self
  105.     {
  106.         $this->production $production;
  107.         return $this;
  108.     }
  109.     public function getAnnee(): ?string
  110.     {
  111.         return $this->annee;
  112.     }
  113.     public function setAnnee(?string $annee): self
  114.     {
  115.         $this->annee $annee;
  116.         return $this;
  117.     }
  118.     public function getRealisation(): ?string
  119.     {
  120.         return $this->realisation;
  121.     }
  122.     public function setRealisation(?string $realisation): self
  123.     {
  124.         $this->realisation $realisation;
  125.         return $this;
  126.     }
  127.     public function getPrestataireTechnique(): ?PrestataireTechnique
  128.     {
  129.         return $this->prestataireTechnique;
  130.     }
  131.     public function setPrestataireTechnique(?PrestataireTechnique $prestataireTechnique): self
  132.     {
  133.         $this->prestataireTechnique $prestataireTechnique;
  134.         return $this;
  135.     }
  136. }