<?php
namespace Acme\SudcmsBundle\Entity;
use Acme\SudcmsBundle\Repository\CatalogRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\Table;
use Attribute;
#[ORM\Entity(repositoryClass: CatalogRepository::class)]
//#[Attribute(Attribute::IS_REPEATABLE | Attribute::TARGET_CLASS)]
class Catalog
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'date')]
private $cat_datecreation;
#[ORM\Column(type: 'text', nullable: true)]
private $cat_description;
#[ORM\Column(type: 'boolean')]
private $cat_enligne;
#[ORM\Column(type: 'integer')]
private $site_uid;
#[ORM\Column(type: 'string', length: 2)]
private $site_lang;
#[ORM\Column(type: 'integer')]
private $cat_categ_id;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $cat_illustration_fichier;
#[ORM\Column(type: 'integer')]
private $cat_id_editor;
#[ORM\Column(length: 20, nullable: true)]
private ?string $reference = null;
#[ORM\Column(type: 'string', length: 400, nullable: true)]
private $cat_titre_url;
#[ORM\Column(type: 'string', length: 200, nullable: true)]
private $cat_titre;
public function getId(): ?int
{
return $this->id;
}
public function getcatDatecreation(): ?\DateTimeInterface
{
return $this->cat_datecreation;
}
public function setcatDatecreation(\DateTimeInterface $cat_datecreation): self
{
$this->cat_datecreation = $cat_datecreation;
return $this;
}
public function getcatDescription(): ?string
{
return $this->cat_description;
}
public function setcatDescription(?string $cat_description): self
{
$this->cat_description = $cat_description;
return $this;
}
public function getcatEnligne(): ?bool
{
return $this->cat_enligne;
}
public function setcatEnligne(bool $cat_enligne): self
{
$this->cat_enligne = $cat_enligne;
return $this;
}
public function getSiteUid(): ?int
{
return $this->site_uid;
}
public function setSiteUid(int $site_uid): self
{
$this->site_uid = $site_uid;
return $this;
}
public function getSiteLang(): ?string
{
return $this->site_lang;
}
public function setSiteLang(string $site_lang): self
{
$this->site_lang = $site_lang;
return $this;
}
public function getcatCategId(): ?int
{
return $this->cat_categ_id;
}
public function setcatCategId(int $cat_categ_id): self
{
$this->cat_categ_id = $cat_categ_id;
return $this;
}
public function getcatIllustrationFichier(): ?string
{
return $this->cat_illustration_fichier;
}
public function setcatIllustrationFichier(?string $cat_illustration_fichier): self
{
$this->cat_illustration_fichier = $cat_illustration_fichier;
return $this;
}
public function getcatIdEditor(): ?int
{
return $this->cat_id_editor;
}
public function setcatIdEditor(int $cat_id_editor): self
{
$this->cat_id_editor = $cat_id_editor;
return $this;
}
public function isCatEnligne(): ?bool
{
return $this->cat_enligne;
}
public function getReference(): ?string
{
return $this->reference;
}
public function setReference(?string $reference): self
{
$this->reference = $reference;
return $this;
}
public function getCatTitreUrl(): ?string
{
return $this->cat_titre_url;
}
public function setCatTitreUrl(?string $cat_titre_url): self
{
$this->cat_titre_url = $cat_titre_url;
return $this;
}
public function getCatTitre(): ?string
{
return $this->cat_titre;
}
public function setCatTitre(?string $cat_titre): self
{
$this->cat_titre = $cat_titre;
return $this;
}
}