<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity (repositoryClass="App\Repository\WebSortRepository")
*/
class WebSort
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true, options={"comment":"Nom interne"})
*/
private $name;
/**
* @ORM\Column(type="string", length=255, nullable=true, options={"comment":"Intitulé"})
*/
private $label;
/**
* @ORM\Column(type="json", nullable=true)
*/
private $labelTranslations;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\DnsitScoringProfile", inversedBy="sorts")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="scoring_id", referencedColumnName="id")
* })
*/
private $score;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\DataField", inversedBy="sorts")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="field_id", referencedColumnName="id")
* })
*/
private $field;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\DnsitCriterion", inversedBy="sorts")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="criterion_id", referencedColumnName="id")
* })
*/
private $criterion;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\DnsitModality", inversedBy="sorts")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="modality_id", referencedColumnName="id")
* })
*/
private $modality;
/**
* @ORM\Column(type="string", length=255, nullable=true, options={"comment":"ASC ou DESC"})
*/
private $direction;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\WebList", mappedBy="startSortOne", cascade={"persist"})
*/
private $webListsStartSortOne;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\WebList", mappedBy="startSortTwo", cascade={"persist"})
*/
private $webListsStartSortTwo;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\WebList", mappedBy="startSortThree", cascade={"persist"})
*/
private $webListsStartSortThree;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\EditionModeleRubrique", mappedBy="startSortOne", cascade={"persist"})
*/
private $editionRubriquesStartSortOne;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\EditionModeleRubrique", mappedBy="startSortTwo", cascade={"persist"})
*/
private $editionRubriquesStartSortTwo;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\EditionModeleRubrique", mappedBy="startSortThree", cascade={"persist"})
*/
private $editionRubriquesStartSortThree;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\WebList", mappedBy="sortBarOne", cascade={"persist"})
*/
private $webListsSortBarOne;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\WebList", mappedBy="sortBarTwo", cascade={"persist"})
*/
private $webListsSortBarTwo;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\WebList", mappedBy="sortBarThree", cascade={"persist"})
*/
private $webListsSortBarThree;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\Diaporama", mappedBy="startSortOne", cascade={"persist"})
*/
private $diaporamasStartSortOne;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\Diaporama", mappedBy="startSortTwo", cascade={"persist"})
*/
private $diaporamasStartSortTwo;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\Diaporama", mappedBy="startSortThree", cascade={"persist"})
*/
private $diaporamasStartSortThree;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="webLists")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="owner_id", referencedColumnName="id")
* })
*/
private $owner;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\DnsitEntity", inversedBy="webLists")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="entity_id", referencedColumnName="id")
* })
*/
private $entity;
/**
* @ORM\ManyToMany(targetEntity="App\Entity\Tag", inversedBy="sorts")
*/
private $tags;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $createdAt;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $updatedAt;
/**
* @ORM\Column(type="integer", nullable=true, options={"default":0, "comment":"code de statut : 0=OK"})
*/
private $state;
/**
* @ORM\Column(type="string", length=25, nullable=true)
*/
private $type;
public function __construct()
{
$this->webListsStartSortOne = new ArrayCollection();
$this->webListsStartSortTwo = new ArrayCollection();
$this->webListsStartSortThree = new ArrayCollection();
$this->webListsSortBarOne = new ArrayCollection();
$this->webListsSortBarTwo = new ArrayCollection();
$this->webListsSortBarThree = new ArrayCollection();
$this->editionRubriquesStartSortOne = new ArrayCollection();
$this->editionRubriquesStartSortTwo = new ArrayCollection();
$this->editionRubriquesStartSortThree = new ArrayCollection();
$this->tags = new ArrayCollection();
$this->diaporamasStartSortOne = new ArrayCollection();
$this->diaporamasStartSortTwo = new ArrayCollection();
$this->diaporamasStartSortThree = new ArrayCollection();
}
public function getId() : ?int
{
return $this->id;
}
public function getName() : ?string
{
return $this->name;
}
public function setName(?string $name) : self
{
$this->name = $name;
return $this;
}
public function getLabel() : ?string
{
return $this->label;
}
public function setLabel(?string $label) : self
{
$this->label = $label;
return $this;
}
public function getLabelTranslations() : ?array
{
return $this->labelTranslations;
}
public function setLabelTranslations(?array $labelTranslations) : self
{
$this->labelTranslations = $labelTranslations;
return $this;
}
public function getDirection() : ?string
{
return $this->direction;
}
public function setDirection(?string $direction) : self
{
$this->direction = $direction;
return $this;
}
public function getCreatedAt() : ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(?\DateTimeInterface $createdAt) : self
{
$this->createdAt = $createdAt;
return $this;
}
public function getUpdatedAt() : ?\DateTimeInterface
{
return $this->updatedAt;
}
public function setUpdatedAt(?\DateTimeInterface $updatedAt) : self
{
$this->updatedAt = $updatedAt;
return $this;
}
public function getState() : ?int
{
return $this->state;
}
public function setState(?int $state) : self
{
$this->state = $state;
return $this;
}
public function getScore() : ?DnsitScoringProfile
{
return $this->score;
}
public function setScore(?DnsitScoringProfile $score) : self
{
$this->score = $score;
return $this;
}
public function getField() : ?DataField
{
return $this->field;
}
public function setField(?DataField $field) : self
{
$this->field = $field;
return $this;
}
public function getCriterion() : ?DnsitCriterion
{
return $this->criterion;
}
public function setCriterion(?DnsitCriterion $criterion) : self
{
$this->criterion = $criterion;
return $this;
}
public function getModality() : ?DnsitModality
{
return $this->modality;
}
public function setModality(?DnsitModality $modality) : self
{
$this->modality = $modality;
return $this;
}
public function getOwner() : ?User
{
return $this->owner;
}
public function setOwner(?User $owner) : self
{
$this->owner = $owner;
return $this;
}
public function getEntity() : ?DnsitEntity
{
return $this->entity;
}
public function setEntity(?DnsitEntity $entity) : self
{
$this->entity = $entity;
return $this;
}
/**
* @return Collection|WebList[]
*/
public function getWebListsStartSortOne() : Collection
{
return $this->webListsStartSortOne;
}
public function addWebListsStartSortOne(WebList $webListsStartSortOne) : self
{
if (!$this->webListsStartSortOne->contains($webListsStartSortOne)) {
$this->webListsStartSortOne[] = $webListsStartSortOne;
$webListsStartSortOne->setStartSortOne($this);
}
return $this;
}
public function removeWebListsStartSortOne(WebList $webListsStartSortOne) : self
{
if ($this->webListsStartSortOne->contains($webListsStartSortOne)) {
$this->webListsStartSortOne->removeElement($webListsStartSortOne);
// set the owning side to null (unless already changed)
if ($webListsStartSortOne->getStartSortOne() === $this) {
$webListsStartSortOne->setStartSortOne(null);
}
}
return $this;
}
/**
* @return Collection|WebList[]
*/
public function getWebListsStartSortTwo() : Collection
{
return $this->webListsStartSortTwo;
}
public function addWebListsStartSortTwo(WebList $webListsStartSortTwo) : self
{
if (!$this->webListsStartSortTwo->contains($webListsStartSortTwo)) {
$this->webListsStartSortTwo[] = $webListsStartSortTwo;
$webListsStartSortTwo->setStartSortTwo($this);
}
return $this;
}
public function removeWebListsStartSortTwo(WebList $webListsStartSortTwo) : self
{
if ($this->webListsStartSortTwo->contains($webListsStartSortTwo)) {
$this->webListsStartSortTwo->removeElement($webListsStartSortTwo);
// set the owning side to null (unless already changed)
if ($webListsStartSortTwo->getStartSortTwo() === $this) {
$webListsStartSortTwo->setStartSortTwo(null);
}
}
return $this;
}
/**
* @return Collection|WebList[]
*/
public function getWebListsStartSortThree() : Collection
{
return $this->webListsStartSortThree;
}
public function addWebListsStartSortThree(WebList $webListsStartSortThree) : self
{
if (!$this->webListsStartSortThree->contains($webListsStartSortThree)) {
$this->webListsStartSortThree[] = $webListsStartSortThree;
$webListsStartSortThree->setStartSortThree($this);
}
return $this;
}
public function removeWebListsStartSortThree(WebList $webListsStartSortThree) : self
{
if ($this->webListsStartSortThree->contains($webListsStartSortThree)) {
$this->webListsStartSortThree->removeElement($webListsStartSortThree);
// set the owning side to null (unless already changed)
if ($webListsStartSortThree->getStartSortThree() === $this) {
$webListsStartSortThree->setStartSortThree(null);
}
}
return $this;
}
/**
* @return Collection|WebList[]
*/
public function getWebListsSortBarOne() : Collection
{
return $this->webListsSortBarOne;
}
public function addWebListsSortBarOne(WebList $webListsSortBarOne) : self
{
if (!$this->webListsSortBarOne->contains($webListsSortBarOne)) {
$this->webListsSortBarOne[] = $webListsSortBarOne;
$webListsSortBarOne->setSortBarOne($this);
}
return $this;
}
public function removeWebListsSortBarOne(WebList $webListsSortBarOne) : self
{
if ($this->webListsSortBarOne->contains($webListsSortBarOne)) {
$this->webListsSortBarOne->removeElement($webListsSortBarOne);
// set the owning side to null (unless already changed)
if ($webListsSortBarOne->getSortBarOne() === $this) {
$webListsSortBarOne->setSortBarOne(null);
}
}
return $this;
}
/**
* @return Collection|WebList[]
*/
public function getWebListsSortBarTwo() : Collection
{
return $this->webListsSortBarTwo;
}
public function addWebListsSortBarTwo(WebList $webListsSortBarTwo) : self
{
if (!$this->webListsSortBarTwo->contains($webListsSortBarTwo)) {
$this->webListsSortBarTwo[] = $webListsSortBarTwo;
$webListsSortBarTwo->setSortBarTwo($this);
}
return $this;
}
public function removeWebListsSortBarTwo(WebList $webListsSortBarTwo) : self
{
if ($this->webListsSortBarTwo->contains($webListsSortBarTwo)) {
$this->webListsSortBarTwo->removeElement($webListsSortBarTwo);
// set the owning side to null (unless already changed)
if ($webListsSortBarTwo->getSortBarTwo() === $this) {
$webListsSortBarTwo->setSortBarTwo(null);
}
}
return $this;
}
/**
* @return Collection|WebList[]
*/
public function getWebListsSortBarThree() : Collection
{
return $this->webListsSortBarThree;
}
public function addWebListsSortBarThree(WebList $webListsSortBarThree) : self
{
if (!$this->webListsSortBarThree->contains($webListsSortBarThree)) {
$this->webListsSortBarThree[] = $webListsSortBarThree;
$webListsSortBarThree->setSortBarThree($this);
}
return $this;
}
public function removeWebListsSortBarThree(WebList $webListsSortBarThree) : self
{
if ($this->webListsSortBarThree->contains($webListsSortBarThree)) {
$this->webListsSortBarThree->removeElement($webListsSortBarThree);
// set the owning side to null (unless already changed)
if ($webListsSortBarThree->getSortBarThree() === $this) {
$webListsSortBarThree->setSortBarThree(null);
}
}
return $this;
}
/**
* @return Collection|Tag[]
*/
public function getTags() : Collection
{
return $this->tags;
}
public function addTag(Tag $tag) : self
{
if (!$this->tags->contains($tag)) {
$this->tags[] = $tag;
}
return $this;
}
public function removeTag(Tag $tag) : self
{
if ($this->tags->contains($tag)) {
$this->tags->removeElement($tag);
}
return $this;
}
/**
* @return Collection|EditionModeleRubrique[]
*/
public function getEditionRubriquesStartSortOne() : Collection
{
return $this->editionRubriquesStartSortOne;
}
public function addEditionRubriquesStartSortOne(EditionModeleRubrique $editionRubriquesStartSortOne) : self
{
if (!$this->editionRubriquesStartSortOne->contains($editionRubriquesStartSortOne)) {
$this->editionRubriquesStartSortOne[] = $editionRubriquesStartSortOne;
$editionRubriquesStartSortOne->setStartSortOne($this);
}
return $this;
}
public function removeEditionRubriquesStartSortOne(EditionModeleRubrique $editionRubriquesStartSortOne) : self
{
if ($this->editionRubriquesStartSortOne->contains($editionRubriquesStartSortOne)) {
$this->editionRubriquesStartSortOne->removeElement($editionRubriquesStartSortOne);
// set the owning side to null (unless already changed)
if ($editionRubriquesStartSortOne->getStartSortOne() === $this) {
$editionRubriquesStartSortOne->setStartSortOne(null);
}
}
return $this;
}
/**
* @return Collection|EditionModeleRubrique[]
*/
public function getEditionRubriquesStartSortTwo() : Collection
{
return $this->editionRubriquesStartSortTwo;
}
public function addEditionRubriquesStartSortTwo(EditionModeleRubrique $editionRubriquesStartSortTwo) : self
{
if (!$this->editionRubriquesStartSortTwo->contains($editionRubriquesStartSortTwo)) {
$this->editionRubriquesStartSortTwo[] = $editionRubriquesStartSortTwo;
$editionRubriquesStartSortTwo->setStartSortTwo($this);
}
return $this;
}
public function removeEditionRubriquesStartSortTwo(EditionModeleRubrique $editionRubriquesStartSortTwo) : self
{
if ($this->editionRubriquesStartSortTwo->contains($editionRubriquesStartSortTwo)) {
$this->editionRubriquesStartSortTwo->removeElement($editionRubriquesStartSortTwo);
// set the owning side to null (unless already changed)
if ($editionRubriquesStartSortTwo->getStartSortTwo() === $this) {
$editionRubriquesStartSortTwo->setStartSortTwo(null);
}
}
return $this;
}
/**
* @return Collection|EditionModeleRubrique[]
*/
public function getEditionRubriquesStartSortThree() : Collection
{
return $this->editionRubriquesStartSortThree;
}
public function addEditionRubriquesStartSortThree(EditionModeleRubrique $editionRubriquesStartSortThree) : self
{
if (!$this->editionRubriquesStartSortThree->contains($editionRubriquesStartSortThree)) {
$this->editionRubriquesStartSortThree[] = $editionRubriquesStartSortThree;
$editionRubriquesStartSortThree->setStartSortThree($this);
}
return $this;
}
public function removeEditionRubriquesStartSortThree(EditionModeleRubrique $editionRubriquesStartSortThree) : self
{
if ($this->editionRubriquesStartSortThree->contains($editionRubriquesStartSortThree)) {
$this->editionRubriquesStartSortThree->removeElement($editionRubriquesStartSortThree);
// set the owning side to null (unless already changed)
if ($editionRubriquesStartSortThree->getStartSortThree() === $this) {
$editionRubriquesStartSortThree->setStartSortThree(null);
}
}
return $this;
}
public function getType() : ?string
{
return $this->type;
}
public function setType(?string $type) : self
{
$this->type = $type;
return $this;
}
/**
* @return Collection|Diaporama[]
*/
public function getDiaporamasStartSortOne() : Collection
{
return $this->diaporamasStartSortOne;
}
public function addDiaporamasStartSortOne(Diaporama $diaporamaStartSortOne) : self
{
if (!$this->diaporamasStartSortOne->contains($diaporamaStartSortOne)) {
$this->diaporamasStartSortOne[] = $diaporamaStartSortOne;
$diaporamaStartSortOne->setStartSortOne($this);
}
return $this;
}
public function removeDiaporamasStartSortOne(Diaporama $diaporamaStartSortOne) : self
{
if ($this->diaporamasStartSortOne->contains($diaporamaStartSortOne)) {
$this->diaporamasStartSortOne->removeElement($diaporamaStartSortOne);
// set the owning side to null (unless already changed)
if ($diaporamaStartSortOne->getStartSortOne() === $this) {
$diaporamaStartSortOne->setStartSortOne(null);
}
}
return $this;
}
/**
* @return Collection|Diaporama[]
*/
public function getDiaporamasStartSortTwo() : Collection
{
return $this->diaporamasStartSortTwo;
}
public function addDiaporamasStartSortTwo(Diaporama $diaporamaStartSortTwo) : self
{
if (!$this->diaporamasStartSortTwo->contains($diaporamaStartSortTwo)) {
$this->diaporamasStartSortTwo[] = $diaporamaStartSortTwo;
$diaporamaStartSortTwo->setStartSortTwo($this);
}
return $this;
}
public function removeDiaporamasStartSortTwo(Diaporama $diaporamaStartSortTwo) : self
{
if ($this->diaporamasStartSortTwo->contains($diaporamaStartSortTwo)) {
$this->diaporamasStartSortTwo->removeElement($diaporamaStartSortTwo);
// set the owning side to null (unless already changed)
if ($diaporamaStartSortTwo->getStartSortTwo() === $this) {
$diaporamaStartSortTwo->setStartSortTwo(null);
}
}
return $this;
}
/**
* @return Collection|Diaporama[]
*/
public function getDiaporamasStartSortThree() : Collection
{
return $this->diaporamasStartSortThree;
}
public function addDiaporamasStartSortThree(Diaporama $diaporamaStartSortThree) : self
{
if (!$this->diaporamasStartSortThree->contains($diaporamaStartSortThree)) {
$this->diaporamasStartSortThree[] = $diaporamaStartSortThree;
$diaporamaStartSortThree->setStartSortThree($this);
}
return $this;
}
public function removeDiaporamasStartSortThree(Diaporama $diaporamaStartSortThree) : self
{
if ($this->diaporamasStartSortThree->contains($diaporamaStartSortThree)) {
$this->diaporamasStartSortThree->removeElement($diaporamaStartSortThree);
// set the owning side to null (unless already changed)
if ($diaporamaStartSortThree->getStartSortThree() === $this) {
$diaporamaStartSortThree->setStartSortThree(null);
}
}
return $this;
}
}