src/Cms/ModuleBundle/Entity/StandardMetadata.php line 14

Open in your IDE?
  1. <?php
  2. namespace Cms\ModuleBundle\Entity;
  3. use Cms\ModuleBundle\Model\ModuleDataEmbeddable;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * Class StandardMetadata
  7.  * @package Cms\ModuleBundle\Entity
  8.  *
  9.  * @ORM\Embeddable
  10.  */
  11. class StandardMetadata extends ModuleDataEmbeddable
  12. {
  13.     /*
  14.     const ROBOTS = [
  15.         self::ROBOTS__NO_INDEX,
  16.         self::ROBOTS__NO_FOLLOW,
  17.         self::ROBOTS__NO_ARCHIVE,
  18.         self::ROBOTS__NO_SNIPPET,
  19.         self::ROBOTS__NO_IMAGE_INDEX,
  20.     ];
  21.     const ROBOTS__NO_INDEX = 'noindex';
  22.     const ROBOTS__NO_FOLLOW = 'nofollow';
  23.     const ROBOTS__NO_ARCHIVE = 'noarchive';
  24.     const ROBOTS__NO_SNIPPET = 'nosnippet';
  25.     const ROBOTS__NO_IMAGE_INDEX = 'noimageindex';
  26.     */
  27.     /**
  28.      * @var string
  29.      *
  30.      * @ORM\Column(
  31.      *  type = "string",
  32.      *  nullable = true
  33.      * )
  34.      */
  35.     protected $title;
  36.     /**
  37.      * @var string
  38.      *
  39.      * @ORM\Column(
  40.      *  type = "text",
  41.      *  nullable = true
  42.      * )
  43.      */
  44.     protected $description;
  45.     /**
  46.      * @var array
  47.      *
  48.      * @ORM\Column(
  49.      *  type = "simple_array",
  50.      *  nullable = true
  51.      * )
  52.      */
  53.     protected $keywords;
  54.     /**
  55.      * @var bool
  56.      *
  57.      * @ORM\Column(
  58.      *  type = "boolean",
  59.      *  nullable = true
  60.      * )
  61.      */
  62.     protected $noIndex;
  63.     /**
  64.      * @var bool
  65.      *
  66.      * @ORM\Column(
  67.      *  type = "boolean",
  68.      *  nullable = true
  69.      * )
  70.      */
  71.     protected $noFollow;
  72.     /**
  73.      * @var array
  74.      *
  75.      * @ORM\Column(
  76.      *  type = "simple_array",
  77.      *  nullable = true
  78.      * )
  79.      */
  80.     protected $robots;
  81.     /**
  82.      * @return string
  83.      */
  84.     public function getTitle()
  85.     {
  86.         return $this->title;
  87.     }
  88.     /**
  89.      * @return string
  90.      */
  91.     public function getDescription()
  92.     {
  93.         return $this->description;
  94.     }
  95.     /**
  96.      * @return array
  97.      */
  98.     public function getKeywords()
  99.     {
  100.         return $this->keywords;
  101.     }
  102.     /**
  103.      * @return bool
  104.      */
  105.     public function getNoIndex()
  106.     {
  107.         return $this->noIndex;
  108.     }
  109.     /**
  110.      * @return bool
  111.      */
  112.     public function getNoFollow()
  113.     {
  114.         return $this->noFollow;
  115.     }
  116.     /**
  117.      * @param string $value
  118.      * @return $this
  119.      */
  120.     public function setTitle($value)
  121.     {
  122.         $this->title $value;
  123.         return $this;
  124.     }
  125.     /**
  126.      * @param string $value
  127.      * @return $this
  128.      */
  129.     public function setDescription($value)
  130.     {
  131.         $this->description $value;
  132.         return $this;
  133.     }
  134.     /**
  135.      * @param array $value
  136.      * @return $this
  137.      */
  138.     public function setKeywords(array $value null)
  139.     {
  140.         $this->keywords $value;
  141.         return $this;
  142.     }
  143.     /**
  144.      * @param bool $value
  145.      * @return $this
  146.      */
  147.     public function setNoIndex($value)
  148.     {
  149.         $this->noIndex $value;
  150.         return $this;
  151.     }
  152.     /**
  153.      * @param bool $value
  154.      * @return $this
  155.      */
  156.     public function setNoFollow($value)
  157.     {
  158.         $this->noFollow $value;
  159.         return $this;
  160.     }
  161.     /**
  162.      * @return array
  163.      */
  164.     public function getRobots()
  165.     {
  166.         return $this->robots;
  167.     }
  168.     /**
  169.      * @param array $value
  170.      * @return $this
  171.      */
  172.     public function setRobots(array $value)
  173.     {
  174.         $this->robots $value;
  175.         return $this;
  176.     }
  177. }