src/Model/Page/Entity/Page/SeoMeta.php line 11

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Model\Page\Entity\Page;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Embeddable]
  6. class SeoMeta
  7. {
  8.     #[ORM\Column(type'text'nullabletrue)]
  9.     private ?string $metaTitle;
  10.     #[ORM\Column(type'text'nullabletrue)]
  11.     private ?string $metaDescription;
  12.     #[ORM\Column(type'text'nullabletrue)]
  13.     private ?string $metaKeywords;
  14.     public function __construct(?string $metaTitle, ?string $metaDescription, ?string $metaKeywords)
  15.     {
  16.         $this->metaTitle $metaTitle;
  17.         $this->metaDescription $metaDescription;
  18.         $this->metaKeywords $metaKeywords;
  19.     }
  20.     public function getMetaTitle(): ?string
  21.     {
  22.         return $this->metaTitle;
  23.     }
  24.     public function getMetaDescription(): ?string
  25.     {
  26.         return $this->metaDescription;
  27.     }
  28.     public function getMetaKeywords(): ?string
  29.     {
  30.         return $this->metaKeywords;
  31.     }
  32.     public function editSeoMeta(?string $metaTitle, ?string $metaDescription, ?string $metaKeywords)
  33.     {
  34.         $this->metaTitle $metaTitle;
  35.         $this->metaDescription $metaDescription;
  36.         $this->metaKeywords $metaKeywords;
  37.     }
  38. }