src/Entity/ProductionCom.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProductionComRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Symfony\Component\Validator\Constraints as Assert;
  8. /**
  9.  * @ORM\Entity(repositoryClass=ProductionComRepository::class)
  10.  */
  11. class ProductionCom
  12. {
  13.     /**
  14.      * @ORM\Id()
  15.      * @ORM\GeneratedValue()
  16.      * @ORM\Column(type="integer")
  17.      */
  18.     private $id;
  19.     /**
  20.      * @ORM\Column(type="text", nullable=true)
  21.      */
  22.     private $presentation;
  23.     /**
  24.      * @ORM\Column(type="boolean", nullable=true)
  25.      */
  26.     private $genreCaptation;
  27.     /**
  28.      * @ORM\Column(type="boolean", nullable=true)
  29.      */
  30.     private $genreClipMusic;
  31.     /**
  32.      * @ORM\Column(type="boolean", nullable=true)
  33.      */
  34.     private $genreFilmPeda;
  35.     /**
  36.      * @ORM\Column(type="boolean", nullable=true)
  37.      */
  38.     private $genreMagazine;
  39.     /**
  40.      * @ORM\Column(type="boolean", nullable=true)
  41.      */
  42.     private $genrePub;
  43.     /**
  44.      * @ORM\Column(type="boolean", nullable=true)
  45.      */
  46.     private $genreReportage;
  47.     /**
  48.      * @ORM\Column(type="boolean", nullable=true)
  49.      */
  50.     private $genreTeaser;
  51.     /**
  52.      * @ORM\Column(type="boolean", nullable=true)
  53.      */
  54.     private $genreVideo;
  55.     /**
  56.      * @ORM\Column(type="boolean", nullable=true)
  57.      */
  58.     private $genreAutre;
  59.     /**
  60.      * @ORM\Column(type="string", length=255, nullable=true)
  61.      */
  62.     private $genreAutrePrecision;
  63.     /**
  64.      * @ORM\Column(type="boolean", nullable=true)
  65.      */
  66.     private $techAnim;
  67.     /**
  68.      * @ORM\Column(type="boolean", nullable=true)
  69.      */
  70.     private $techDrone;
  71.     /**
  72.      * @ORM\Column(type="boolean", nullable=true)
  73.      */
  74.     private $techRealAug;
  75.     /**
  76.      * @ORM\Column(type="boolean", nullable=true)
  77.      */
  78.     private $techVideo360;
  79.     /**
  80.      * @ORM\Column(type="boolean", nullable=true)
  81.      */
  82.     private $techPriseVueSol;
  83.     /**
  84.      * @ORM\Column(type="boolean", nullable=true)
  85.      */
  86.     private $techVr;
  87.     /**
  88.      * @ORM\Column(type="boolean", nullable=true)
  89.      */
  90.     private $techWeb;
  91.     /**
  92.      * @ORM\Column(type="boolean", nullable=true)
  93.      */
  94.     private $techAutre;
  95.     /**
  96.      * @ORM\Column(type="string", length=255, nullable=true)
  97.      */
  98.     private $techAutrePrecision;
  99.     /**
  100.      * @ORM\Column(type="string", length=255, nullable=true)
  101.      */
  102.     private $lienDemo;
  103.     /**
  104.      * @ORM\Column(type="string", length=255, nullable=true)
  105.      */
  106.     private $lienAutreProjet;
  107.     /**
  108.      * @ORM\Column(type="string", length=25, nullable=true)
  109.      */
  110.     private $prodCine;
  111.     /**
  112.      * @ORM\Column(type="string", length=25, nullable=true)
  113.      */
  114.     private $prodAudio;
  115.     /**
  116.      * @ORM\Column(type="boolean", nullable=true)
  117.      */
  118.     private $langueEtrangere;
  119.     /**
  120.      * @ORM\Column(type="string", length=255, nullable=true)
  121.      */
  122.     private $langueEtrangerePrecision;
  123.     /**
  124.      * @ORM\Column(type="string", length=5, nullable=true)
  125.      */
  126.     private $recompenseFestival;
  127.     /**
  128.      * @ORM\Column(type="string", length=255, nullable=true)
  129.      */
  130.     private $recompenseFestivalPrecision;
  131.     /**
  132.      * @ORM\Column(type="string", length=255, nullable=true)
  133.      */
  134.     private $suggestionReseau;
  135.     /**
  136.      * @ORM\Column(type="datetime")
  137.      */
  138.     private $createdAt;
  139.     /**
  140.      * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="productionsCom")
  141.      * @ORM\JoinColumn(nullable=false)
  142.      */
  143.     private $user;
  144.     /**
  145.      * @ORM\OneToMany(targetEntity="App\Entity\Travaux", mappedBy="productionCom", cascade={"persist"}, orphanRemoval=true)
  146.      * @ORM\OrderBy({"annee" = "DESC"})
  147.      * @Assert\Valid
  148.      */
  149.     private $travaux;
  150.     /**
  151.      * @ORM\Column(type="datetime", nullable=true)
  152.      */
  153.     private $modifiedAt;
  154.     /**
  155.      * @ORM\Column(type="string", length=25)
  156.      */
  157.     private $statut;
  158.     /**
  159.      * @ORM\Column(type="datetime")
  160.      */
  161.     private $statutDate;
  162.     public function __construct()
  163.     {
  164.         $this->travaux = new ArrayCollection();
  165.         $this->statut  'nouveau';
  166.         $this->statutDate = new \DateTime();
  167.     }
  168.     public function getId(): ?int
  169.     {
  170.         return $this->id;
  171.     }
  172.     public function getPresentation(): ?string
  173.     {
  174.         return $this->presentation;
  175.     }
  176.     public function setPresentation(?string $presentation): self
  177.     {
  178.         $this->presentation $presentation;
  179.         return $this;
  180.     }
  181.     public function getGenreCaptation(): ?bool
  182.     {
  183.         return $this->genreCaptation;
  184.     }
  185.     public function setGenreCaptation(?bool $genreCaptation): self
  186.     {
  187.         $this->genreCaptation $genreCaptation;
  188.         return $this;
  189.     }
  190.     public function getGenreClipMusic(): ?bool
  191.     {
  192.         return $this->genreClipMusic;
  193.     }
  194.     public function setGenreClipMusic(?bool $genreClipMusic): self
  195.     {
  196.         $this->genreClipMusic $genreClipMusic;
  197.         return $this;
  198.     }
  199.     public function getGenreFilmPeda(): ?bool
  200.     {
  201.         return $this->genreFilmPeda;
  202.     }
  203.     public function setGenreFilmPeda(?bool $genreFilmPeda): self
  204.     {
  205.         $this->genreFilmPeda $genreFilmPeda;
  206.         return $this;
  207.     }
  208.     public function getGenreMagazine(): ?bool
  209.     {
  210.         return $this->genreMagazine;
  211.     }
  212.     public function setGenreMagazine(?bool $genreMagazine): self
  213.     {
  214.         $this->genreMagazine $genreMagazine;
  215.         return $this;
  216.     }
  217.     public function getGenrePub(): ?bool
  218.     {
  219.         return $this->genrePub;
  220.     }
  221.     public function setGenrePub(?bool $genrePub): self
  222.     {
  223.         $this->genrePub $genrePub;
  224.         return $this;
  225.     }
  226.     public function getGenreReportage(): ?bool
  227.     {
  228.         return $this->genreReportage;
  229.     }
  230.     public function setGenreReportage(?bool $genreReportage): self
  231.     {
  232.         $this->genreReportage $genreReportage;
  233.         return $this;
  234.     }
  235.     public function getGenreTeaser(): ?bool
  236.     {
  237.         return $this->genreTeaser;
  238.     }
  239.     public function setGenreTeaser(?bool $genreTeaser): self
  240.     {
  241.         $this->genreTeaser $genreTeaser;
  242.         return $this;
  243.     }
  244.     public function getGenreVideo(): ?bool
  245.     {
  246.         return $this->genreVideo;
  247.     }
  248.     public function setGenreVideo(?bool $genreVideo): self
  249.     {
  250.         $this->genreVideo $genreVideo;
  251.         return $this;
  252.     }
  253.     public function getGenreAutre(): ?bool
  254.     {
  255.         return $this->genreAutre;
  256.     }
  257.     public function setGenreAutre(?bool $genreAutre): self
  258.     {
  259.         $this->genreAutre $genreAutre;
  260.         return $this;
  261.     }
  262.     public function getGenreAutrePrecision(): ?string
  263.     {
  264.         return $this->genreAutrePrecision;
  265.     }
  266.     public function setGenreAutrePrecision(?string $genreAutrePrecision): self
  267.     {
  268.         $this->genreAutrePrecision $genreAutrePrecision;
  269.         return $this;
  270.     }
  271.     public function getTechAnim(): ?bool
  272.     {
  273.         return $this->techAnim;
  274.     }
  275.     public function setTechAnim(?bool $techAnim): self
  276.     {
  277.         $this->techAnim $techAnim;
  278.         return $this;
  279.     }
  280.     public function getTechDrone(): ?bool
  281.     {
  282.         return $this->techDrone;
  283.     }
  284.     public function setTechDrone(?bool $techDrone): self
  285.     {
  286.         $this->techDrone $techDrone;
  287.         return $this;
  288.     }
  289.     public function getTechRealAug(): ?bool
  290.     {
  291.         return $this->techRealAug;
  292.     }
  293.     public function setTechRealAug(?bool $techRealAug): self
  294.     {
  295.         $this->techRealAug $techRealAug;
  296.         return $this;
  297.     }
  298.     public function getTechVideo360(): ?bool
  299.     {
  300.         return $this->techVideo360;
  301.     }
  302.     public function setTechVideo360(?bool $techVideo360): self
  303.     {
  304.         $this->techVideo360 $techVideo360;
  305.         return $this;
  306.     }
  307.     public function getTechPriseVueSol(): ?bool
  308.     {
  309.         return $this->techPriseVueSol;
  310.     }
  311.     public function setTechPriseVueSol(?bool $techPriseVueSol): self
  312.     {
  313.         $this->techPriseVueSol $techPriseVueSol;
  314.         return $this;
  315.     }
  316.     public function getTechVr(): ?bool
  317.     {
  318.         return $this->techVr;
  319.     }
  320.     public function setTechVr(?bool $techVr): self
  321.     {
  322.         $this->techVr $techVr;
  323.         return $this;
  324.     }
  325.     public function getTechWeb(): ?bool
  326.     {
  327.         return $this->techWeb;
  328.     }
  329.     public function setTechWeb(?bool $techWeb): self
  330.     {
  331.         $this->techWeb $techWeb;
  332.         return $this;
  333.     }
  334.     public function getTechAutre(): ?bool
  335.     {
  336.         return $this->techAutre;
  337.     }
  338.     public function setTechAutre(?bool $techAutre): self
  339.     {
  340.         $this->techAutre $techAutre;
  341.         return $this;
  342.     }
  343.     public function getTechAutrePrecision(): ?string
  344.     {
  345.         return $this->techAutrePrecision;
  346.     }
  347.     public function setTechAutrePrecision(?string $techAutrePrecision): self
  348.     {
  349.         $this->techAutrePrecision $techAutrePrecision;
  350.         return $this;
  351.     }
  352.     public function getLienDemo(): ?string
  353.     {
  354.         return $this->lienDemo;
  355.     }
  356.     public function setLienDemo(?string $lienDemo): self
  357.     {
  358.         $this->lienDemo $lienDemo;
  359.         return $this;
  360.     }
  361.     public function getLienAutreProjet(): ?string
  362.     {
  363.         return $this->lienAutreProjet;
  364.     }
  365.     public function setLienAutreProjet(?string $lienAutreProjet): self
  366.     {
  367.         $this->lienAutreProjet $lienAutreProjet;
  368.         return $this;
  369.     }
  370.     public function getProdCine(): ?string
  371.     {
  372.         return $this->prodCine;
  373.     }
  374.     public function setProdCine(?string $prodCine): self
  375.     {
  376.         $this->prodCine $prodCine;
  377.         return $this;
  378.     }
  379.     public function getProdAudio(): ?string
  380.     {
  381.         return $this->prodAudio;
  382.     }
  383.     public function setProdAudio(?string $prodAudio): self
  384.     {
  385.         $this->prodAudio $prodAudio;
  386.         return $this;
  387.     }
  388.     public function getLangueEtrangere(): ?bool
  389.     {
  390.         return $this->langueEtrangere;
  391.     }
  392.     public function setLangueEtrangere(?bool $langueEtrangere): self
  393.     {
  394.         $this->langueEtrangere $langueEtrangere;
  395.         return $this;
  396.     }
  397.     public function getLangueEtrangerePrecision(): ?string
  398.     {
  399.         return $this->langueEtrangerePrecision;
  400.     }
  401.     public function setLangueEtrangerePrecision(?string $langueEtrangerePrecision): self
  402.     {
  403.         $this->langueEtrangerePrecision $langueEtrangerePrecision;
  404.         return $this;
  405.     }
  406.     public function getRecompenseFestival(): ?string
  407.     {
  408.         return $this->recompenseFestival;
  409.     }
  410.     public function setRecompenseFestival(?string $recompenseFestival): self
  411.     {
  412.         $this->recompenseFestival $recompenseFestival;
  413.         return $this;
  414.     }
  415.     public function getRecompenseFestivalPrecision(): ?string
  416.     {
  417.         return $this->recompenseFestivalPrecision;
  418.     }
  419.     public function setRecompenseFestivalPrecision(?string $recompenseFestivalPrecision): self
  420.     {
  421.         $this->recompenseFestivalPrecision $recompenseFestivalPrecision;
  422.         return $this;
  423.     }
  424.     public function getSuggestionReseau(): ?string
  425.     {
  426.         return $this->suggestionReseau;
  427.     }
  428.     public function setSuggestionReseau(?string $suggestionReseau): self
  429.     {
  430.         $this->suggestionReseau $suggestionReseau;
  431.         return $this;
  432.     }
  433.     public function getCreatedAt(): ?\DateTimeInterface
  434.     {
  435.         return $this->createdAt;
  436.     }
  437.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  438.     {
  439.         $this->createdAt $createdAt;
  440.         return $this;
  441.     }
  442.     public function getUser(): ?User
  443.     {
  444.         return $this->user;
  445.     }
  446.     public function setUser(?User $user): self
  447.     {
  448.         $this->user $user;
  449.         return $this;
  450.     }
  451.     /**
  452.      * @return Collection|Travaux[]
  453.      */
  454.     public function getTravaux(): Collection
  455.     {
  456.         return $this->travaux;
  457.     }
  458.     public function addTravaux(Travaux $travaux): self
  459.     {
  460.         if (!$this->travaux->contains($travaux)) {
  461.             $this->travaux[] = $travaux;
  462.             $travaux->setProductionCom($this);
  463.         }
  464.         return $this;
  465.     }
  466.     public function removeTravaux(Travaux $travaux): self
  467.     {
  468.         if ($this->travaux->contains($travaux)) {
  469.             $this->travaux->removeElement($travaux);
  470.             // set the owning side to null (unless already changed)
  471.             if ($travaux->getProductionCom() === $this) {
  472.                 $travaux->setProductionCom(null);
  473.             }
  474.         }
  475.         return $this;
  476.     }
  477.     public function getModifiedAt(): ?\DateTimeInterface
  478.     {
  479.         return $this->modifiedAt;
  480.     }
  481.     public function setModifiedAt(\DateTimeInterface $modifiedAt null): self
  482.     {
  483.         $this->modifiedAt $modifiedAt;
  484.         return $this;
  485.     }
  486.     public function getStatut(): ?string
  487.     {
  488.         return $this->statut;
  489.     }
  490.     public function setStatut(string $statut): self
  491.     {
  492.         $this->statut $statut;
  493.         return $this;
  494.     }
  495.     public function getStatutDate(): ?\DateTimeInterface
  496.     {
  497.         return $this->statutDate;
  498.     }
  499.     public function setStatutDate(\DateTimeInterface $statutDate): self
  500.     {
  501.         $this->statutDate $statutDate;
  502.         return $this;
  503.     }
  504. }