<?php
namespace App\Entity;
use App\Repository\DocumentCategoryRepository;
use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
/**
* @ORM\Entity(repositoryClass=DocumentCategoryRepository::class)
* @Auditable()
*
*
*/
class DocumentCategory
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $label;
/**
* @ORM\Column(type="string", length=64, nullable=true)
*/
private $number;
/**
* @ORM\ManyToOne(targetEntity=Services::class)
* @ORM\JoinColumn(nullable=false)
*/
private $service;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $htmlModel;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $isDeleted;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $dateCreate;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $dateUpdate;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $status;
/**
* @ORM\ManyToOne(targetEntity=Users::class)
*/
private $userCreate;
/**
* @ORM\ManyToOne(targetEntity=Users::class)
*/
private $userUpdate;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $isBaseDocument;
/**
* @ORM\Column(type="boolean", nullable=false, options={"default" : 0})
*/
private $canAddIdentity;
/**
* @ORM\Column(type="boolean", nullable=false, options={"default" : 0})
*/
private $canSelectSameIdentity;
/**
* @ORM\Column(type="integer", nullable=true, options={"default" : null})
*/
private $anchorBeneficiaire;
/**
* @ORM\Column(type="boolean")
*/
private $forInternetUser;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $isPublished;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $iconClass;
public function __construct()
{
$this->isDeleted = false;
$this->dateCreate = new \DateTime();
$this->forInternetUser = false;
}
public function getId(): ?int
{
return $this->id;
}
public function getLabel(): ?string
{
return $this->label;
}
public function setLabel(string $label): self
{
$this->label = $label;
return $this;
}
public function getNumber(): ?string
{
return $this->number;
}
public function setNumber(string $number): self
{
$this->number = $number;
return $this;
}
public function getService(): ?Services
{
return $this->service;
}
public function setService(?Services $service): self
{
$this->service = $service;
return $this;
}
public function getHtmlModel(): ?string
{
return $this->htmlModel;
}
public function setHtmlModel(?string $htmlModel): self
{
$this->htmlModel = $htmlModel;
return $this;
}
public function getIsDeleted(): ?bool
{
return $this->isDeleted;
}
public function setIsDeleted(?bool $isDeleted): self
{
$this->isDeleted = $isDeleted;
return $this;
}
public function getDateCreate(): ?\DateTimeInterface
{
return $this->dateCreate;
}
public function setDateCreate(?\DateTimeInterface $dateCreate): self
{
$this->dateCreate = $dateCreate;
return $this;
}
public function getDateUpdate(): ?\DateTimeInterface
{
return $this->dateUpdate;
}
public function setDateUpdate(?\DateTimeInterface $dateUpdate): self
{
$this->dateUpdate = $dateUpdate;
return $this;
}
public function getStatus(): ?int
{
return $this->status;
}
public function setStatus(?int $status): self
{
$this->status = $status;
return $this;
}
public function getAnchorBeneficiaire(): ?int
{
return $this->anchorBeneficiaire;
}
public function setAnchorBeneficiaire(?int $anchorBeneficiaire): self
{
$this->anchorBeneficiaire = $anchorBeneficiaire;
return $this;
}
public function getUserCreate(): ?Users
{
return $this->userCreate;
}
public function setUserCreate(?Users $userCreate): self
{
$this->userCreate = $userCreate;
return $this;
}
public function getUserUpdate(): ?Users
{
return $this->userUpdate;
}
public function setUserUpdate(?Users $userUpdate): self
{
$this->userUpdate = $userUpdate;
return $this;
}
public function getIsBaseDocument(): ?bool
{
return $this->isBaseDocument;
}
public function setIsBaseDocument(?bool $isBaseDocument): self
{
$this->isBaseDocument = $isBaseDocument;
return $this;
}
public function getCanAddIdentity(): ?bool
{
return $this->canAddIdentity;
}
public function setCanAddIdentity(?bool $canAddIdentity): self
{
$this->canAddIdentity = $canAddIdentity;
return $this;
}
public function getCanSelectSameIdentity(): ?bool
{
return $this->canSelectSameIdentity;
}
public function setCanSelectSameIdentity(?bool $canSelectSameIdentity): self
{
$this->canSelectSameIdentity = $canSelectSameIdentity;
return $this;
}
public function isForInternetUser(): ?bool
{
return $this->forInternetUser;
}
public function setForInternetUser(bool $forInternetUser): self
{
$this->forInternetUser = $forInternetUser;
return $this;
}
public function isIsPublished(): ?bool
{
return $this->isPublished;
}
public function setIsPublished(?bool $isPublished): self
{
$this->isPublished = $isPublished;
return $this;
}
public function getIconClass(): ?string
{
return $this->iconClass;
}
public function setIconClass(?string $iconClass): self
{
$this->iconClass = $iconClass;
return $this;
}
}