<?php
namespace App\Entity;
use App\Entity\Traits\IdTrait;
use Doctrine\ORM\Mapping as ORM;
use App\Repository\SeoMainPageRepository;
/**
* @ORM\Entity(repositoryClass=SeoMainPageRepository::class)
*/
class SeoMainPage
{
use IdTrait;
public function __construct(
/**
* @ORM\Column(type="text", nullable=true)
*/
private ?string $seoRightBlockPl,
/**
* @ORM\Column(type="text", nullable=true)
*/
private ?string $seoLeftBlockPl,
/**
* @ORM\Column(type="text", nullable=true)
*/
private ?string $seoRightBlockEn,
/**
* @ORM\Column(type="text", nullable=true)
*/
private ?string $seoLeftBlockEn,
){}
/**
* @return string|null
*/
public function getSeoRightBlockPl(): ?string
{
return $this->seoRightBlockPl;
}
/**
* @return string|null
*/
public function getSeoLeftBlockPl(): ?string
{
return $this->seoLeftBlockPl;
}
/**
* @return string|null
*/
public function getSeoRightBlockEn(): ?string
{
return $this->seoRightBlockEn;
}
/**
* @return string|null
*/
public function getSeoLeftBlockEn(): ?string
{
return $this->seoLeftBlockEn;
}
public static function createSeoMainPage(array $params): self
{
return new self($params['seoRightBlockPl'], $params['seoLeftBlockPl'], $params['seoRightBlockEn'], $params['seoLeftBlockEn']);
}
public function updateSeoMainPage(array $params): void
{
$this->seoRightBlockPl = $params['seoRightBlockPl'];
$this->seoLeftBlockPl = $params['seoLeftBlockPl'];
$this->seoRightBlockEn = $params['seoRightBlockEn'];
$this->seoLeftBlockEn = $params['seoLeftBlockEn'];
}
}