<?php
declare(strict_types=1);
namespace App\Model\Page\Entity\Page;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Embeddable]
class SeoMeta
{
#[ORM\Column(type: 'text', nullable: true)]
private ?string $metaTitle;
#[ORM\Column(type: 'text', nullable: true)]
private ?string $metaDescription;
#[ORM\Column(type: 'text', nullable: true)]
private ?string $metaKeywords;
public function __construct(?string $metaTitle, ?string $metaDescription, ?string $metaKeywords)
{
$this->metaTitle = $metaTitle;
$this->metaDescription = $metaDescription;
$this->metaKeywords = $metaKeywords;
}
public function getMetaTitle(): ?string
{
return $this->metaTitle;
}
public function getMetaDescription(): ?string
{
return $this->metaDescription;
}
public function getMetaKeywords(): ?string
{
return $this->metaKeywords;
}
public function editSeoMeta(?string $metaTitle, ?string $metaDescription, ?string $metaKeywords)
{
$this->metaTitle = $metaTitle;
$this->metaDescription = $metaDescription;
$this->metaKeywords = $metaKeywords;
}
}