<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\EntityRepo\RedactionListRepo")
* @ORM\Table(name="redaction_list")
*/
class RedactionList
{
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $redactionListId=0;
/**
* @ORM\Column(type="string", length=100)
*/
protected $redactionListName;
/**
* @ORM\Column(type="text", nullable=true)
*/
protected $redactionListDescription;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
protected $isPublic=true;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
protected $isWebBased=true;
/**
* @ORM\Column(type="date", nullable=true)
*/
protected $dateCreated;
/**
* @ORM\Column(type="integer")
*/
protected $wepagesCount=0;
/**
* @ORM\Column(type="integer")
*/
protected $thumbWidth=0;
/**
* @ORM\Column(type="integer")
*/
protected $thumbHeight=0;
/**
* @ORM\Column(type="integer")
*/
protected $priority=3;
/**
* @ORM\Column(type="integer", length=100)
*/
protected $userId=0;
/**
* Many RedactionLists have Many WebPages.
* @ORM\ManyToMany(targetEntity="WebPage",cascade={"persist"})
* @ORM\JoinTable(name="redaction_list_webpage",
* joinColumns={@ORM\JoinColumn(name="redaction_list_id", referencedColumnName="redaction_list_id")},
* inverseJoinColumns={@ORM\JoinColumn(name="web_page_id", referencedColumnName="web_page_id", unique=false)}
* )
*/
protected $webPages;
/**
* @ORM\Column(type="integer")
*/
protected $score=0;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
protected $cssClass;
/**
* Constructor
*/
public function __construct()
{
$this->webPages = new \Doctrine\Common\Collections\ArrayCollection();
}
public function getRedactionListId(): ?int
{
return $this->redactionListId;
}
public function getRedactionListName(): ?string
{
return $this->redactionListName;
}
public function setRedactionListName(string $redactionListName): static
{
$this->redactionListName = $redactionListName;
return $this;
}
public function getRedactionListDescription(): ?string
{
return $this->redactionListDescription;
}
public function setRedactionListDescription(?string $redactionListDescription): static
{
$this->redactionListDescription = $redactionListDescription;
return $this;
}
public function isIsPublic(): ?bool
{
return $this->isPublic;
}
public function setIsPublic(?bool $isPublic): static
{
$this->isPublic = $isPublic;
return $this;
}
public function isIsWebBased(): ?bool
{
return $this->isWebBased;
}
public function setIsWebBased(?bool $isWebBased): static
{
$this->isWebBased = $isWebBased;
return $this;
}
public function getDateCreated(): ?\DateTimeInterface
{
return $this->dateCreated;
}
public function setDateCreated(?\DateTimeInterface $dateCreated): static
{
$this->dateCreated = $dateCreated;
return $this;
}
public function getWepagesCount(): ?int
{
return $this->wepagesCount;
}
public function setWepagesCount(int $wepagesCount): static
{
$this->wepagesCount = $wepagesCount;
return $this;
}
public function getThumbWidth(): ?int
{
return $this->thumbWidth;
}
public function setThumbWidth(int $thumbWidth): static
{
$this->thumbWidth = $thumbWidth;
return $this;
}
public function getThumbHeight(): ?int
{
return $this->thumbHeight;
}
public function setThumbHeight(int $thumbHeight): static
{
$this->thumbHeight = $thumbHeight;
return $this;
}
public function getPriority(): ?int
{
return $this->priority;
}
public function setPriority(int $priority): static
{
$this->priority = $priority;
return $this;
}
public function getUserId(): ?int
{
return $this->userId;
}
public function setUserId(int $userId): static
{
$this->userId = $userId;
return $this;
}
public function getScore(): ?int
{
return $this->score;
}
public function setScore(int $score): static
{
$this->score = $score;
return $this;
}
public function getCssClass(): ?string
{
return $this->cssClass;
}
public function setCssClass(?string $cssClass): static
{
$this->cssClass = $cssClass;
return $this;
}
/**
* @return Collection<int, WebPage>
*/
public function getWebPages(): Collection
{
return $this->webPages;
}
public function addWebPage(WebPage $webPage): static
{
if (!$this->webPages->contains($webPage)) {
$this->webPages->add($webPage);
}
return $this;
}
public function removeWebPage(WebPage $webPage): static
{
$this->webPages->removeElement($webPage);
return $this;
}
}