src/Entity/WebSort.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity (repositoryClass="App\Repository\WebSortRepository")
  8.  */
  9. class WebSort
  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, options={"comment":"Nom interne"})
  19.      */
  20.     private $name;
  21.     /**
  22.      * @ORM\Column(type="string", length=255, nullable=true, options={"comment":"Intitulé"})
  23.      */
  24.     private $label;
  25.     /**
  26.      * @ORM\Column(type="json", nullable=true)
  27.      */
  28.     private $labelTranslations;
  29.     /**
  30.      * @ORM\ManyToOne(targetEntity="App\Entity\DnsitScoringProfile", inversedBy="sorts")
  31.      * @ORM\JoinColumns({
  32.      *   @ORM\JoinColumn(name="scoring_id", referencedColumnName="id")
  33.      * })
  34.      */
  35.     private $score;
  36.     /**
  37.      * @ORM\ManyToOne(targetEntity="App\Entity\DataField", inversedBy="sorts")
  38.      * @ORM\JoinColumns({
  39.      *   @ORM\JoinColumn(name="field_id", referencedColumnName="id")
  40.      * })
  41.      */
  42.     private $field;
  43.     /**
  44.      * @ORM\ManyToOne(targetEntity="App\Entity\DnsitCriterion", inversedBy="sorts")
  45.      * @ORM\JoinColumns({
  46.      *   @ORM\JoinColumn(name="criterion_id", referencedColumnName="id")
  47.      * })
  48.      */
  49.     private $criterion;
  50.     /**
  51.      * @ORM\ManyToOne(targetEntity="App\Entity\DnsitModality", inversedBy="sorts")
  52.      * @ORM\JoinColumns({
  53.      *   @ORM\JoinColumn(name="modality_id", referencedColumnName="id")
  54.      * })
  55.      */
  56.     private $modality;
  57.     /**
  58.      * @ORM\Column(type="string", length=255, nullable=true, options={"comment":"ASC ou DESC"})
  59.      */
  60.     private $direction;
  61.     /**
  62.      * @var \Doctrine\Common\Collections\Collection
  63.      *
  64.      * @ORM\OneToMany(targetEntity="App\Entity\WebList", mappedBy="startSortOne", cascade={"persist"})
  65.      */
  66.     private $webListsStartSortOne;
  67.     /**
  68.      * @var \Doctrine\Common\Collections\Collection
  69.      *
  70.      * @ORM\OneToMany(targetEntity="App\Entity\WebList", mappedBy="startSortTwo", cascade={"persist"})
  71.      */
  72.     private $webListsStartSortTwo;
  73.     /**
  74.      * @var \Doctrine\Common\Collections\Collection
  75.      *
  76.      * @ORM\OneToMany(targetEntity="App\Entity\WebList", mappedBy="startSortThree", cascade={"persist"})
  77.      */
  78.     private $webListsStartSortThree;
  79.     /**
  80.      * @var \Doctrine\Common\Collections\Collection
  81.      *
  82.      * @ORM\OneToMany(targetEntity="App\Entity\EditionModeleRubrique", mappedBy="startSortOne", cascade={"persist"})
  83.      */
  84.     private $editionRubriquesStartSortOne;
  85.     /**
  86.      * @var \Doctrine\Common\Collections\Collection
  87.      *
  88.      * @ORM\OneToMany(targetEntity="App\Entity\EditionModeleRubrique", mappedBy="startSortTwo", cascade={"persist"})
  89.      */
  90.     private $editionRubriquesStartSortTwo;
  91.     /**
  92.      * @var \Doctrine\Common\Collections\Collection
  93.      *
  94.      * @ORM\OneToMany(targetEntity="App\Entity\EditionModeleRubrique", mappedBy="startSortThree", cascade={"persist"})
  95.      */
  96.     private $editionRubriquesStartSortThree;
  97.     /**
  98.      * @var \Doctrine\Common\Collections\Collection
  99.      *
  100.      * @ORM\OneToMany(targetEntity="App\Entity\WebList", mappedBy="sortBarOne", cascade={"persist"})
  101.      */
  102.     private $webListsSortBarOne;
  103.     /**
  104.      * @var \Doctrine\Common\Collections\Collection
  105.      *
  106.      * @ORM\OneToMany(targetEntity="App\Entity\WebList", mappedBy="sortBarTwo", cascade={"persist"})
  107.      */
  108.     private $webListsSortBarTwo;
  109.     /**
  110.      * @var \Doctrine\Common\Collections\Collection
  111.      *
  112.      * @ORM\OneToMany(targetEntity="App\Entity\WebList", mappedBy="sortBarThree", cascade={"persist"})
  113.      */
  114.     private $webListsSortBarThree;
  115.     /**
  116.      * @var \Doctrine\Common\Collections\Collection
  117.      *
  118.      * @ORM\OneToMany(targetEntity="App\Entity\Diaporama", mappedBy="startSortOne", cascade={"persist"})
  119.      */
  120.     private $diaporamasStartSortOne;
  121.     /**
  122.      * @var \Doctrine\Common\Collections\Collection
  123.      *
  124.      * @ORM\OneToMany(targetEntity="App\Entity\Diaporama", mappedBy="startSortTwo", cascade={"persist"})
  125.      */
  126.     private $diaporamasStartSortTwo;
  127.     /**
  128.      * @var \Doctrine\Common\Collections\Collection
  129.      *
  130.      * @ORM\OneToMany(targetEntity="App\Entity\Diaporama", mappedBy="startSortThree", cascade={"persist"})
  131.      */
  132.     private $diaporamasStartSortThree;
  133.     /**
  134.      * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="webLists")
  135.      * @ORM\JoinColumns({
  136.      *   @ORM\JoinColumn(name="owner_id", referencedColumnName="id")
  137.      * })
  138.      */
  139.     private $owner;
  140.     /**
  141.      * @ORM\ManyToOne(targetEntity="App\Entity\DnsitEntity", inversedBy="webLists")
  142.      * @ORM\JoinColumns({
  143.      *   @ORM\JoinColumn(name="entity_id", referencedColumnName="id")
  144.      * })
  145.      */
  146.     private $entity;
  147.     /**
  148.      * @ORM\ManyToMany(targetEntity="App\Entity\Tag", inversedBy="sorts")
  149.      */
  150.     private $tags;
  151.     /**
  152.      * @ORM\Column(type="datetime", nullable=true)
  153.      */
  154.     private $createdAt;
  155.     /**
  156.      * @ORM\Column(type="datetime", nullable=true)
  157.      */
  158.     private $updatedAt;
  159.     /**
  160.      * @ORM\Column(type="integer", nullable=true, options={"default":0, "comment":"code de statut : 0=OK"})
  161.      */
  162.     private $state;
  163.     /**
  164.      * @ORM\Column(type="string", length=25, nullable=true)
  165.      */
  166.     private $type;
  167.     public function __construct()
  168.     {
  169.         $this->webListsStartSortOne = new ArrayCollection();
  170.         $this->webListsStartSortTwo = new ArrayCollection();
  171.         $this->webListsStartSortThree = new ArrayCollection();
  172.         $this->webListsSortBarOne = new ArrayCollection();
  173.         $this->webListsSortBarTwo = new ArrayCollection();
  174.         $this->webListsSortBarThree = new ArrayCollection();
  175.         $this->editionRubriquesStartSortOne = new ArrayCollection();
  176.         $this->editionRubriquesStartSortTwo = new ArrayCollection();
  177.         $this->editionRubriquesStartSortThree = new ArrayCollection();
  178.         $this->tags = new ArrayCollection();
  179.         $this->diaporamasStartSortOne = new ArrayCollection();
  180.         $this->diaporamasStartSortTwo = new ArrayCollection();
  181.         $this->diaporamasStartSortThree = new ArrayCollection();
  182.     }
  183.     public function getId() : ?int
  184.     {
  185.         return $this->id;
  186.     }
  187.     public function getName() : ?string
  188.     {
  189.         return $this->name;
  190.     }
  191.     public function setName(?string $name) : self
  192.     {
  193.         $this->name $name;
  194.         return $this;
  195.     }
  196.     public function getLabel() : ?string
  197.     {
  198.         return $this->label;
  199.     }
  200.     public function setLabel(?string $label) : self
  201.     {
  202.         $this->label $label;
  203.         return $this;
  204.     }
  205.     public function getLabelTranslations() : ?array
  206.     {
  207.         return $this->labelTranslations;
  208.     }
  209.     public function setLabelTranslations(?array $labelTranslations) : self
  210.     {
  211.         $this->labelTranslations $labelTranslations;
  212.         return $this;
  213.     }
  214.     public function getDirection() : ?string
  215.     {
  216.         return $this->direction;
  217.     }
  218.     public function setDirection(?string $direction) : self
  219.     {
  220.         $this->direction $direction;
  221.         return $this;
  222.     }
  223.     public function getCreatedAt() : ?\DateTimeInterface
  224.     {
  225.         return $this->createdAt;
  226.     }
  227.     public function setCreatedAt(?\DateTimeInterface $createdAt) : self
  228.     {
  229.         $this->createdAt $createdAt;
  230.         return $this;
  231.     }
  232.     public function getUpdatedAt() : ?\DateTimeInterface
  233.     {
  234.         return $this->updatedAt;
  235.     }
  236.     public function setUpdatedAt(?\DateTimeInterface $updatedAt) : self
  237.     {
  238.         $this->updatedAt $updatedAt;
  239.         return $this;
  240.     }
  241.     public function getState() : ?int
  242.     {
  243.         return $this->state;
  244.     }
  245.     public function setState(?int $state) : self
  246.     {
  247.         $this->state $state;
  248.         return $this;
  249.     }
  250.     public function getScore() : ?DnsitScoringProfile
  251.     {
  252.         return $this->score;
  253.     }
  254.     public function setScore(?DnsitScoringProfile $score) : self
  255.     {
  256.         $this->score $score;
  257.         return $this;
  258.     }
  259.     public function getField() : ?DataField
  260.     {
  261.         return $this->field;
  262.     }
  263.     public function setField(?DataField $field) : self
  264.     {
  265.         $this->field $field;
  266.         return $this;
  267.     }
  268.     public function getCriterion() : ?DnsitCriterion
  269.     {
  270.         return $this->criterion;
  271.     }
  272.     public function setCriterion(?DnsitCriterion $criterion) : self
  273.     {
  274.         $this->criterion $criterion;
  275.         return $this;
  276.     }
  277.     public function getModality() : ?DnsitModality
  278.     {
  279.         return $this->modality;
  280.     }
  281.     public function setModality(?DnsitModality $modality) : self
  282.     {
  283.         $this->modality $modality;
  284.         return $this;
  285.     }
  286.     public function getOwner() : ?User
  287.     {
  288.         return $this->owner;
  289.     }
  290.     public function setOwner(?User $owner) : self
  291.     {
  292.         $this->owner $owner;
  293.         return $this;
  294.     }
  295.     public function getEntity() : ?DnsitEntity
  296.     {
  297.         return $this->entity;
  298.     }
  299.     public function setEntity(?DnsitEntity $entity) : self
  300.     {
  301.         $this->entity $entity;
  302.         return $this;
  303.     }
  304.     /**
  305.      * @return Collection|WebList[]
  306.      */
  307.     public function getWebListsStartSortOne() : Collection
  308.     {
  309.         return $this->webListsStartSortOne;
  310.     }
  311.     public function addWebListsStartSortOne(WebList $webListsStartSortOne) : self
  312.     {
  313.         if (!$this->webListsStartSortOne->contains($webListsStartSortOne)) {
  314.             $this->webListsStartSortOne[] = $webListsStartSortOne;
  315.             $webListsStartSortOne->setStartSortOne($this);
  316.         }
  317.         return $this;
  318.     }
  319.     public function removeWebListsStartSortOne(WebList $webListsStartSortOne) : self
  320.     {
  321.         if ($this->webListsStartSortOne->contains($webListsStartSortOne)) {
  322.             $this->webListsStartSortOne->removeElement($webListsStartSortOne);
  323.             // set the owning side to null (unless already changed)
  324.             if ($webListsStartSortOne->getStartSortOne() === $this) {
  325.                 $webListsStartSortOne->setStartSortOne(null);
  326.             }
  327.         }
  328.         return $this;
  329.     }
  330.     /**
  331.      * @return Collection|WebList[]
  332.      */
  333.     public function getWebListsStartSortTwo() : Collection
  334.     {
  335.         return $this->webListsStartSortTwo;
  336.     }
  337.     public function addWebListsStartSortTwo(WebList $webListsStartSortTwo) : self
  338.     {
  339.         if (!$this->webListsStartSortTwo->contains($webListsStartSortTwo)) {
  340.             $this->webListsStartSortTwo[] = $webListsStartSortTwo;
  341.             $webListsStartSortTwo->setStartSortTwo($this);
  342.         }
  343.         return $this;
  344.     }
  345.     public function removeWebListsStartSortTwo(WebList $webListsStartSortTwo) : self
  346.     {
  347.         if ($this->webListsStartSortTwo->contains($webListsStartSortTwo)) {
  348.             $this->webListsStartSortTwo->removeElement($webListsStartSortTwo);
  349.             // set the owning side to null (unless already changed)
  350.             if ($webListsStartSortTwo->getStartSortTwo() === $this) {
  351.                 $webListsStartSortTwo->setStartSortTwo(null);
  352.             }
  353.         }
  354.         return $this;
  355.     }
  356.     /**
  357.      * @return Collection|WebList[]
  358.      */
  359.     public function getWebListsStartSortThree() : Collection
  360.     {
  361.         return $this->webListsStartSortThree;
  362.     }
  363.     public function addWebListsStartSortThree(WebList $webListsStartSortThree) : self
  364.     {
  365.         if (!$this->webListsStartSortThree->contains($webListsStartSortThree)) {
  366.             $this->webListsStartSortThree[] = $webListsStartSortThree;
  367.             $webListsStartSortThree->setStartSortThree($this);
  368.         }
  369.         return $this;
  370.     }
  371.     public function removeWebListsStartSortThree(WebList $webListsStartSortThree) : self
  372.     {
  373.         if ($this->webListsStartSortThree->contains($webListsStartSortThree)) {
  374.             $this->webListsStartSortThree->removeElement($webListsStartSortThree);
  375.             // set the owning side to null (unless already changed)
  376.             if ($webListsStartSortThree->getStartSortThree() === $this) {
  377.                 $webListsStartSortThree->setStartSortThree(null);
  378.             }
  379.         }
  380.         return $this;
  381.     }
  382.     /**
  383.      * @return Collection|WebList[]
  384.      */
  385.     public function getWebListsSortBarOne() : Collection
  386.     {
  387.         return $this->webListsSortBarOne;
  388.     }
  389.     public function addWebListsSortBarOne(WebList $webListsSortBarOne) : self
  390.     {
  391.         if (!$this->webListsSortBarOne->contains($webListsSortBarOne)) {
  392.             $this->webListsSortBarOne[] = $webListsSortBarOne;
  393.             $webListsSortBarOne->setSortBarOne($this);
  394.         }
  395.         return $this;
  396.     }
  397.     public function removeWebListsSortBarOne(WebList $webListsSortBarOne) : self
  398.     {
  399.         if ($this->webListsSortBarOne->contains($webListsSortBarOne)) {
  400.             $this->webListsSortBarOne->removeElement($webListsSortBarOne);
  401.             // set the owning side to null (unless already changed)
  402.             if ($webListsSortBarOne->getSortBarOne() === $this) {
  403.                 $webListsSortBarOne->setSortBarOne(null);
  404.             }
  405.         }
  406.         return $this;
  407.     }
  408.     /**
  409.      * @return Collection|WebList[]
  410.      */
  411.     public function getWebListsSortBarTwo() : Collection
  412.     {
  413.         return $this->webListsSortBarTwo;
  414.     }
  415.     public function addWebListsSortBarTwo(WebList $webListsSortBarTwo) : self
  416.     {
  417.         if (!$this->webListsSortBarTwo->contains($webListsSortBarTwo)) {
  418.             $this->webListsSortBarTwo[] = $webListsSortBarTwo;
  419.             $webListsSortBarTwo->setSortBarTwo($this);
  420.         }
  421.         return $this;
  422.     }
  423.     public function removeWebListsSortBarTwo(WebList $webListsSortBarTwo) : self
  424.     {
  425.         if ($this->webListsSortBarTwo->contains($webListsSortBarTwo)) {
  426.             $this->webListsSortBarTwo->removeElement($webListsSortBarTwo);
  427.             // set the owning side to null (unless already changed)
  428.             if ($webListsSortBarTwo->getSortBarTwo() === $this) {
  429.                 $webListsSortBarTwo->setSortBarTwo(null);
  430.             }
  431.         }
  432.         return $this;
  433.     }
  434.     /**
  435.      * @return Collection|WebList[]
  436.      */
  437.     public function getWebListsSortBarThree() : Collection
  438.     {
  439.         return $this->webListsSortBarThree;
  440.     }
  441.     public function addWebListsSortBarThree(WebList $webListsSortBarThree) : self
  442.     {
  443.         if (!$this->webListsSortBarThree->contains($webListsSortBarThree)) {
  444.             $this->webListsSortBarThree[] = $webListsSortBarThree;
  445.             $webListsSortBarThree->setSortBarThree($this);
  446.         }
  447.         return $this;
  448.     }
  449.     public function removeWebListsSortBarThree(WebList $webListsSortBarThree) : self
  450.     {
  451.         if ($this->webListsSortBarThree->contains($webListsSortBarThree)) {
  452.             $this->webListsSortBarThree->removeElement($webListsSortBarThree);
  453.             // set the owning side to null (unless already changed)
  454.             if ($webListsSortBarThree->getSortBarThree() === $this) {
  455.                 $webListsSortBarThree->setSortBarThree(null);
  456.             }
  457.         }
  458.         return $this;
  459.     }
  460.     /**
  461.      * @return Collection|Tag[]
  462.      */
  463.     public function getTags() : Collection
  464.     {
  465.         return $this->tags;
  466.     }
  467.     public function addTag(Tag $tag) : self
  468.     {
  469.         if (!$this->tags->contains($tag)) {
  470.             $this->tags[] = $tag;
  471.         }
  472.         return $this;
  473.     }
  474.     public function removeTag(Tag $tag) : self
  475.     {
  476.         if ($this->tags->contains($tag)) {
  477.             $this->tags->removeElement($tag);
  478.         }
  479.         return $this;
  480.     }
  481.     /**
  482.      * @return Collection|EditionModeleRubrique[]
  483.      */
  484.     public function getEditionRubriquesStartSortOne() : Collection
  485.     {
  486.         return $this->editionRubriquesStartSortOne;
  487.     }
  488.     public function addEditionRubriquesStartSortOne(EditionModeleRubrique $editionRubriquesStartSortOne) : self
  489.     {
  490.         if (!$this->editionRubriquesStartSortOne->contains($editionRubriquesStartSortOne)) {
  491.             $this->editionRubriquesStartSortOne[] = $editionRubriquesStartSortOne;
  492.             $editionRubriquesStartSortOne->setStartSortOne($this);
  493.         }
  494.         return $this;
  495.     }
  496.     public function removeEditionRubriquesStartSortOne(EditionModeleRubrique $editionRubriquesStartSortOne) : self
  497.     {
  498.         if ($this->editionRubriquesStartSortOne->contains($editionRubriquesStartSortOne)) {
  499.             $this->editionRubriquesStartSortOne->removeElement($editionRubriquesStartSortOne);
  500.             // set the owning side to null (unless already changed)
  501.             if ($editionRubriquesStartSortOne->getStartSortOne() === $this) {
  502.                 $editionRubriquesStartSortOne->setStartSortOne(null);
  503.             }
  504.         }
  505.         return $this;
  506.     }
  507.     /**
  508.      * @return Collection|EditionModeleRubrique[]
  509.      */
  510.     public function getEditionRubriquesStartSortTwo() : Collection
  511.     {
  512.         return $this->editionRubriquesStartSortTwo;
  513.     }
  514.     public function addEditionRubriquesStartSortTwo(EditionModeleRubrique $editionRubriquesStartSortTwo) : self
  515.     {
  516.         if (!$this->editionRubriquesStartSortTwo->contains($editionRubriquesStartSortTwo)) {
  517.             $this->editionRubriquesStartSortTwo[] = $editionRubriquesStartSortTwo;
  518.             $editionRubriquesStartSortTwo->setStartSortTwo($this);
  519.         }
  520.         return $this;
  521.     }
  522.     public function removeEditionRubriquesStartSortTwo(EditionModeleRubrique $editionRubriquesStartSortTwo) : self
  523.     {
  524.         if ($this->editionRubriquesStartSortTwo->contains($editionRubriquesStartSortTwo)) {
  525.             $this->editionRubriquesStartSortTwo->removeElement($editionRubriquesStartSortTwo);
  526.             // set the owning side to null (unless already changed)
  527.             if ($editionRubriquesStartSortTwo->getStartSortTwo() === $this) {
  528.                 $editionRubriquesStartSortTwo->setStartSortTwo(null);
  529.             }
  530.         }
  531.         return $this;
  532.     }
  533.     /**
  534.      * @return Collection|EditionModeleRubrique[]
  535.      */
  536.     public function getEditionRubriquesStartSortThree() : Collection
  537.     {
  538.         return $this->editionRubriquesStartSortThree;
  539.     }
  540.     public function addEditionRubriquesStartSortThree(EditionModeleRubrique $editionRubriquesStartSortThree) : self
  541.     {
  542.         if (!$this->editionRubriquesStartSortThree->contains($editionRubriquesStartSortThree)) {
  543.             $this->editionRubriquesStartSortThree[] = $editionRubriquesStartSortThree;
  544.             $editionRubriquesStartSortThree->setStartSortThree($this);
  545.         }
  546.         return $this;
  547.     }
  548.     public function removeEditionRubriquesStartSortThree(EditionModeleRubrique $editionRubriquesStartSortThree) : self
  549.     {
  550.         if ($this->editionRubriquesStartSortThree->contains($editionRubriquesStartSortThree)) {
  551.             $this->editionRubriquesStartSortThree->removeElement($editionRubriquesStartSortThree);
  552.             // set the owning side to null (unless already changed)
  553.             if ($editionRubriquesStartSortThree->getStartSortThree() === $this) {
  554.                 $editionRubriquesStartSortThree->setStartSortThree(null);
  555.             }
  556.         }
  557.         return $this;
  558.     }
  559.     public function getType() : ?string
  560.     {
  561.         return $this->type;
  562.     }
  563.     public function setType(?string $type) : self
  564.     {
  565.         $this->type $type;
  566.         return $this;
  567.     }
  568.     /**
  569.      * @return Collection|Diaporama[]
  570.      */
  571.     public function getDiaporamasStartSortOne() : Collection
  572.     {
  573.         return $this->diaporamasStartSortOne;
  574.     }
  575.     public function addDiaporamasStartSortOne(Diaporama $diaporamaStartSortOne) : self
  576.     {
  577.         if (!$this->diaporamasStartSortOne->contains($diaporamaStartSortOne)) {
  578.             $this->diaporamasStartSortOne[] = $diaporamaStartSortOne;
  579.             $diaporamaStartSortOne->setStartSortOne($this);
  580.         }
  581.         return $this;
  582.     }
  583.     public function removeDiaporamasStartSortOne(Diaporama $diaporamaStartSortOne) : self
  584.     {
  585.         if ($this->diaporamasStartSortOne->contains($diaporamaStartSortOne)) {
  586.             $this->diaporamasStartSortOne->removeElement($diaporamaStartSortOne);
  587.             // set the owning side to null (unless already changed)
  588.             if ($diaporamaStartSortOne->getStartSortOne() === $this) {
  589.                 $diaporamaStartSortOne->setStartSortOne(null);
  590.             }
  591.         }
  592.         return $this;
  593.     }
  594.     /**
  595.      * @return Collection|Diaporama[]
  596.      */
  597.     public function getDiaporamasStartSortTwo() : Collection
  598.     {
  599.         return $this->diaporamasStartSortTwo;
  600.     }
  601.     public function addDiaporamasStartSortTwo(Diaporama $diaporamaStartSortTwo) : self
  602.     {
  603.         if (!$this->diaporamasStartSortTwo->contains($diaporamaStartSortTwo)) {
  604.             $this->diaporamasStartSortTwo[] = $diaporamaStartSortTwo;
  605.             $diaporamaStartSortTwo->setStartSortTwo($this);
  606.         }
  607.         return $this;
  608.     }
  609.     public function removeDiaporamasStartSortTwo(Diaporama $diaporamaStartSortTwo) : self
  610.     {
  611.         if ($this->diaporamasStartSortTwo->contains($diaporamaStartSortTwo)) {
  612.             $this->diaporamasStartSortTwo->removeElement($diaporamaStartSortTwo);
  613.             // set the owning side to null (unless already changed)
  614.             if ($diaporamaStartSortTwo->getStartSortTwo() === $this) {
  615.                 $diaporamaStartSortTwo->setStartSortTwo(null);
  616.             }
  617.         }
  618.         return $this;
  619.     }
  620.     /**
  621.      * @return Collection|Diaporama[]
  622.      */
  623.     public function getDiaporamasStartSortThree() : Collection
  624.     {
  625.         return $this->diaporamasStartSortThree;
  626.     }
  627.     public function addDiaporamasStartSortThree(Diaporama $diaporamaStartSortThree) : self
  628.     {
  629.         if (!$this->diaporamasStartSortThree->contains($diaporamaStartSortThree)) {
  630.             $this->diaporamasStartSortThree[] = $diaporamaStartSortThree;
  631.             $diaporamaStartSortThree->setStartSortThree($this);
  632.         }
  633.         return $this;
  634.     }
  635.     public function removeDiaporamasStartSortThree(Diaporama $diaporamaStartSortThree) : self
  636.     {
  637.         if ($this->diaporamasStartSortThree->contains($diaporamaStartSortThree)) {
  638.             $this->diaporamasStartSortThree->removeElement($diaporamaStartSortThree);
  639.             // set the owning side to null (unless already changed)
  640.             if ($diaporamaStartSortThree->getStartSortThree() === $this) {
  641.                 $diaporamaStartSortThree->setStartSortThree(null);
  642.             }
  643.         }
  644.         return $this;
  645.     }
  646. }