src/Entity/CostumeExperience.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CostumeExperienceRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. /**
  7.  * @ORM\Entity(repositoryClass=CostumeExperienceRepository::class)
  8.  */
  9. class CostumeExperience
  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\PrestataireLogistique", inversedBy="costumeExperiences")
  67.      * @ORM\JoinColumn(nullable=false)
  68.      */
  69.     private $prestataireLogistique;
  70.     public function getId(): ?int
  71.     {
  72.         return $this->id;
  73.     }
  74.     public function getTitre(): ?string
  75.     {
  76.         return $this->titre;
  77.     }
  78.     public function setTitre(?string $titre): self
  79.     {
  80.         $this->titre $titre;
  81.         return $this;
  82.     }
  83.     public function getCategorie(): ?string
  84.     {
  85.         return $this->categorie;
  86.     }
  87.     public function setCategorie(?string $categorie): self
  88.     {
  89.         $this->categorie $categorie;
  90.         return $this;
  91.     }
  92.     public function getFormat(): ?string
  93.     {
  94.         return $this->format;
  95.     }
  96.     public function setFormat(?string $format): self
  97.     {
  98.         $this->format $format;
  99.         return $this;
  100.     }
  101.     public function getProduction(): ?string
  102.     {
  103.         return $this->production;
  104.     }
  105.     public function setProduction(?string $production): self
  106.     {
  107.         $this->production $production;
  108.         return $this;
  109.     }
  110.     public function getAnnee(): ?string
  111.     {
  112.         return $this->annee;
  113.     }
  114.     public function setAnnee(?string $annee): self
  115.     {
  116.         $this->annee $annee;
  117.         return $this;
  118.     }
  119.     public function getRealisation(): ?string
  120.     {
  121.         return $this->realisation;
  122.     }
  123.     public function setRealisation(?string $realisation): self
  124.     {
  125.         $this->realisation $realisation;
  126.         return $this;
  127.     }
  128.     public function getPrestataireLogistique(): ?PrestataireLogistique
  129.     {
  130.         return $this->prestataireLogistique;
  131.     }
  132.     public function setPrestataireLogistique(?PrestataireLogistique $prestataireLogistique): self
  133.     {
  134.         $this->prestataireLogistique $prestataireLogistique;
  135.         return $this;
  136.     }
  137. }