src/Entity/PageComponent.php line 11
<?php
namespace App\Entity;
use App\Entity\Traits\TimestampableTrait;
use App\Repository\PageComponentRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: PageComponentRepository::class)]
class PageComponent
{
use TimestampableTrait;
public const PAGE_TYPE_HEADER = 'header';
public const PAGE_TYPE_FOOTER = 'footer';
public const PAGE_TYPE_SCRIPT = 'script';
public const PAGE_TYPE_HEAD = 'head';
public const PAGE_COMPONENT_TYPES = [
self::PAGE_TYPE_HEADER,
self::PAGE_TYPE_FOOTER,
self::PAGE_TYPE_SCRIPT,
self::PAGE_TYPE_HEAD
];
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 20)]
private ?string $type = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $Content = null;
public function getId(): ?int
{
return $this->id;
}
public function getType(): ?string
{
return $this->type;
}
public function setType(string $type): self
{
$this->type = $type;
return $this;
}
public function getContent(): ?string
{
return $this->Content;
}
public function setContent(?string $Content): self
{
$this->Content = $Content;
return $this;
}
}