<?php
namespace App\Entity;
use App\Entity\Interfaces\DefaultEntity;
use App\Entity\Traits\ActiveTrait;
use App\Entity\Traits\DeleteTrait;
use App\Entity\Traits\LinkTrait;
use App\Entity\Traits\TitleAndContentTrait;
use App\Entity\Traits\TranslateTrait;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Gedmo\Timestampable\Traits\TimestampableEntity;
/**
* HtmlBlocks.
*
* @Gedmo\Loggable
*
* @Gedmo\TranslationEntity(class="App\Entity\HtmlBlocksTranslations")
*/
#[ORM\Entity(repositoryClass: \App\Repository\HtmlBlocksRepository::class)]
#[ORM\Table(name: 'html_blocks')]
class HtmlBlocks implements DefaultEntity
{
use TitleAndContentTrait;
use LinkTrait;
use ActiveTrait;
use DeleteTrait;
use TimestampableEntity;
use TranslateTrait;
#[ORM\Column(name: 'id', type: 'integer')]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')]
private int $id;
/**
* @Gedmo\Versioned
*
* @Gedmo\Translatable
*/
#[ORM\Column(name: 'html', type: 'text', nullable: true)]
private ?string $html = null;
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
public function getHtml(): ?string
{
return $this->html;
}
public function setHtml($html): self
{
$this->html = $html;
return $this;
}
public function getLinkedPageId(): int
{
return 0;
}
}