<?php
namespace MLDev\BaseBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use MLDev\BaseBundle\Contract\Doctrine\Mapping\ConvertingSuperclassInterface;
use MLDev\BaseBundle\Contract\SeoSite\SeoSiteInterface;
/**
* SeoSite
*
* @ORM\Table(name="MLDev_SeoSite")
* @ORM\MappedSuperclass(repositoryClass="MLDev\BaseBundle\Repository\SeoSiteRepository")
*/
class SeoSite implements SeoSiteInterface, ConvertingSuperclassInterface
{
/**
* @ORM\Id
* @ORM\Column(name="id", type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Column(type="string", length=255, nullable=false)
*/
private $name = null;
/**
* @return string
*/
public function __toString()
{
return (string)$this->getName();
}
/**
* @return int
*/
public function getId(): ?int
{
return $this->id;
}
/**
* @return string
*/
public function getName(): ?string
{
return $this->name;
}
/**
* @param string $name
*/
public function setName(?string $name): void
{
$this->name = $name;
}
}