vendor/kunstmaan/seo-bundle/Entity/Robots.php line 17

Open in your IDE?
  1. <?php
  2. namespace Kunstmaan\SeoBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Kunstmaan\AdminBundle\Entity\AbstractEntity;
  5. use Kunstmaan\SeoBundle\Form\RobotsType;
  6. /**
  7.  * Robots.txt data
  8.  *
  9.  * @ORM\Entity
  10.  * @ORM\Table(name="kuma_robots")
  11.  */
  12. #[ORM\Entity]
  13. #[ORM\Table(name'kuma_robots')]
  14. class Robots extends AbstractEntity
  15. {
  16.     /**
  17.      * @var string
  18.      *
  19.      * @ORM\Column(name="robots_txt", type="text", nullable=true)
  20.      */
  21.     #[ORM\Column(name'robots_txt'type'text'nullabletrue)]
  22.     protected $robotsTxt;
  23.     /**
  24.      * @return string
  25.      */
  26.     public function getRobotsTxt()
  27.     {
  28.         return $this->robotsTxt;
  29.     }
  30.     /**
  31.      * @param string $robotsTxt
  32.      */
  33.     public function setRobotsTxt($robotsTxt)
  34.     {
  35.         $this->robotsTxt $robotsTxt;
  36.     }
  37.     /**
  38.      * @return string
  39.      */
  40.     public function getDefaultAdminType()
  41.     {
  42.         return RobotsType::class;
  43.     }
  44.     /**
  45.      * Return string representation of entity
  46.      *
  47.      * @return string
  48.      */
  49.     public function __toString()
  50.     {
  51.         return 'Robots';
  52.     }
  53. }