vendor/fri0z/mldev-base-bundle/src/Entity/SeoInfo.php line 16

Open in your IDE?
  1. <?php
  2. namespace MLDev\BaseBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use MLDev\BaseBundle\Contract\Doctrine\Mapping\ConvertingSuperclassInterface;
  5. use MLDev\BaseBundle\Contract\SeoSite\SeoSiteInfoInterface;
  6. /**
  7.  * SeoInfo
  8.  *
  9.  * @ORM\Table(name="MLDev_SeoInfo")
  10.  * @ORM\MappedSuperclass(repositoryClass="MLDev\BaseBundle\Repository\SeoInfoRepository")
  11.  */
  12. class SeoInfo implements SeoSiteInfoInterfaceConvertingSuperclassInterface
  13. {
  14.     /**
  15.      * @ORM\Id
  16.      * @ORM\Column(name="id", type="integer")
  17.      * @ORM\GeneratedValue(strategy="AUTO")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @ORM\Column(type="string", length=255, nullable=true)
  22.      */
  23.     private $title null;
  24.     /**
  25.      * @ORM\Column(type="string", length=255, nullable=true)
  26.      */
  27.     private $keywords null;
  28.     /**
  29.      * @ORM\Column(type="text", nullable=true)
  30.      */
  31.     private $description null;
  32.     /**
  33.      * @var boolean
  34.      *
  35.      * @ORM\Column(name="is_default", type="boolean", options={"default": 0})
  36.      */
  37.     private $isDefault 0;
  38.     /**
  39.      * @return mixed
  40.      */
  41.     public function getId()
  42.     {
  43.         return $this->id;
  44.     }
  45.     /**
  46.      * @param mixed $id
  47.      */
  48.     public function setId($id): void
  49.     {
  50.         $this->id $id;
  51.     }
  52.     /**
  53.      * @return null
  54.      */
  55.     public function getTitle()
  56.     {
  57.         return $this->title;
  58.     }
  59.     /**
  60.      * @param null $title
  61.      */
  62.     public function setTitle($title): void
  63.     {
  64.         $this->title $title;
  65.     }
  66.     /**
  67.      * @return null
  68.      */
  69.     public function getKeywords()
  70.     {
  71.         return $this->keywords;
  72.     }
  73.     /**
  74.      * @param null $keywords
  75.      */
  76.     public function setKeywords($keywords): void
  77.     {
  78.         $this->keywords $keywords;
  79.     }
  80.     /**
  81.      * @return null
  82.      */
  83.     public function getDescription()
  84.     {
  85.         return $this->description;
  86.     }
  87.     /**
  88.      * @param null $description
  89.      */
  90.     public function setDescription($description): void
  91.     {
  92.         $this->description $description;
  93.     }
  94.     /**
  95.      * @return bool
  96.      */
  97.     public function isDefault(): bool
  98.     {
  99.         return $this->isDefault;
  100.     }
  101.     /**
  102.      * @param bool $isDefault
  103.      */
  104.     public function setIsDefault(bool $isDefault): void
  105.     {
  106.         $this->isDefault $isDefault;
  107.     }
  108. }