<?phpnamespace App\Entity;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use Gedmo\Translatable\Translatable;use App\Repository\CatpageRepository;use App\Entity\Translation\PageTranslation;use App\Entity\Translation\CatpageTranslation;use Gedmo\Mapping\Annotation\TranslationEntity;use Doctrine\Common\Collections\ArrayCollection;use Gedmo\Mapping\Annotation\Locale as GedmoLocale;use Gedmo\Mapping\Annotation\Translatable as GedmoTranslatable;#[ORM\Entity(repositoryClass: CatpageRepository::class)]#[TranslationEntity(class: CatpageTranslation::class)]class Catpage implements EntityInterface{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(type: 'integer')] private int $cat = 0; #[ORM\Column(type: 'integer')] private int $brand = 0; #[ORM\Column(length: 255)] private ?string $intname = null; #[GedmoTranslatable] #[ORM\Column(length: 255)] private ?string $name = null; #[GedmoTranslatable] #[ORM\Column(type: Types::TEXT)] private ?string $cont = null; #[GedmoTranslatable] #[ORM\Column(type: Types::TEXT)] private ?string $cont2 = null; #[ORM\Column] private ?bool $visible = null; #[ORM\Column(type: 'integer')] private int $prior = 0; #[GedmoTranslatable] #[ORM\Column(length: 255)] private ?string $title = null; #[GedmoTranslatable] #[ORM\Column(length: 255)] private ?string $h1 = null; #[GedmoTranslatable] #[ORM\Column(length: 255)] private ?string $kw = null; #[GedmoTranslatable] #[ORM\Column(length: 255)] private ?string $descr = null; #[GedmoLocale] private $locale; #[ORM\OneToMany(targetEntity: CatpageTranslation::class, mappedBy: 'object', cascade: ['persist', 'remove'])] private $translations; public function __construct() { $this->translations = new ArrayCollection(); } public function setLocale($locale) { $this->locale = $locale; } public function getTranslations() { return $this->translations; } public function addTranslation(CatpageTranslation $t) { if (!$this->translations->contains($t)) { $this->translations[] = $t; $t->setObject($this); } } public function getId(): ?int { return $this->id; } public function getCatId(): ?int { return $this->cat; } public function setCatId(int $cat_id): self { $this->cat = $cat_id; return $this; } public function getBrandId(): ?int { return $this->brand; } public function setBrandId(int $brand_id): self { $this->brand = $brand_id; return $this; } public function getIntname(): ?string { return $this->intname; } public function setIntname(string $intname): self { $this->intname = $intname; return $this; } public function getName(): ?string { return $this->name; } public function setName(string $name): self { $this->name = $name; return $this; } public function getCont(): ?string { return $this->cont; } public function setCont(string $cont): self { $this->cont = $cont; return $this; } public function getCont2(): ?string { return $this->cont2; } public function setCont2(string $cont2): self { $this->cont2 = $cont2; return $this; } public function isVisible(): ?bool { return $this->visible; } public function setVisible(bool $visible): self { $this->visible = $visible; return $this; } public function getPrior(): ?int { return $this->prior; } public function setPrior(int $prior): self { $this->prior = $prior; return $this; } public function getTitle(): ?string { return $this->title; } public function setTitle(string $title): self { $this->title = $title; return $this; } public function getH1(): ?string { return $this->h1; } public function setH1(string $h1): self { $this->h1 = $h1; return $this; } public function getKw(): ?string { return $this->kw; } public function setKw(string $kw): self { $this->kw = $kw; return $this; } public function getDescr(): ?string { return $this->descr; } public function setDescr(string $descr): self { $this->descr = $descr; return $this; }}