src/Entity/SecuriteExperience.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SecuriteExperienceRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. /**
  7.  * @ORM\Entity(repositoryClass=SecuriteExperienceRepository::class)
  8.  */
  9. class SecuriteExperience
  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.      */
  20.     private $titre;
  21.     /**
  22.      * @ORM\Column(type="string", length=255, nullable=true)
  23.      */
  24.     private $categorie;
  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 $format;
  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 $production;
  41.     /**
  42.      * @ORM\Column(type="string", length=4, nullable=true)
  43.      * @Assert\Length(
  44.      *      max = 4,
  45.      *      maxMessage = "Format erroné"
  46.      * )
  47.      */
  48.     private $annee;
  49.     /**
  50.      * @ORM\Column(type="string", length=255, nullable=true)
  51.      */
  52.     private $realisation;
  53.     /**
  54.      * @ORM\ManyToOne(targetEntity="App\Entity\PrestataireLogistique", inversedBy="securiteExperiences")
  55.      * @ORM\JoinColumn(nullable=false)
  56.      */
  57.     private $prestataireLogistique;
  58.     public function getId(): ?int
  59.     {
  60.         return $this->id;
  61.     }
  62.     public function getTitre(): ?string
  63.     {
  64.         return $this->titre;
  65.     }
  66.     public function setTitre(?string $titre): self
  67.     {
  68.         $this->titre $titre;
  69.         return $this;
  70.     }
  71.     public function getCategorie(): ?string
  72.     {
  73.         return $this->categorie;
  74.     }
  75.     public function setCategorie(?string $categorie): self
  76.     {
  77.         $this->categorie $categorie;
  78.         return $this;
  79.     }
  80.     public function getFormat(): ?string
  81.     {
  82.         return $this->format;
  83.     }
  84.     public function setFormat(?string $format): self
  85.     {
  86.         $this->format $format;
  87.         return $this;
  88.     }
  89.     public function getProduction(): ?string
  90.     {
  91.         return $this->production;
  92.     }
  93.     public function setProduction(?string $production): self
  94.     {
  95.         $this->production $production;
  96.         return $this;
  97.     }
  98.     public function getAnnee(): ?string
  99.     {
  100.         return $this->annee;
  101.     }
  102.     public function setAnnee(?string $annee): self
  103.     {
  104.         $this->annee $annee;
  105.         return $this;
  106.     }
  107.     public function getRealisation(): ?string
  108.     {
  109.         return $this->realisation;
  110.     }
  111.     public function setRealisation(?string $realisation): self
  112.     {
  113.         $this->realisation $realisation;
  114.         return $this;
  115.     }
  116.     public function getPrestataireLogistique(): ?PrestataireLogistique
  117.     {
  118.         return $this->prestataireLogistique;
  119.     }
  120.     public function setPrestataireLogistique(?PrestataireLogistique $prestataireLogistique): self
  121.     {
  122.         $this->prestataireLogistique $prestataireLogistique;
  123.         return $this;
  124.     }
  125. }