vendor/contao/core-bundle/src/Routing/ResponseContext/HtmlHeadBag/HtmlHeadBag.php line 15

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. /*
  4.  * This file is part of Contao.
  5.  *
  6.  * (c) Leo Feyer
  7.  *
  8.  * @license LGPL-3.0-or-later
  9.  */
  10. namespace Contao\CoreBundle\Routing\ResponseContext\HtmlHeadBag;
  11. final class HtmlHeadBag
  12. {
  13.     /**
  14.      * @var string
  15.      */
  16.     private $title '';
  17.     /**
  18.      * @var string
  19.      */
  20.     private $metaDescription '';
  21.     /**
  22.      * @var string
  23.      */
  24.     private $metaRobots 'index,follow';
  25.     public function getTitle(): string
  26.     {
  27.         return $this->title;
  28.     }
  29.     public function setTitle(string $title): self
  30.     {
  31.         $this->title $title;
  32.         return $this;
  33.     }
  34.     public function getMetaDescription(): string
  35.     {
  36.         return $this->metaDescription;
  37.     }
  38.     public function setMetaDescription(string $metaDescription): self
  39.     {
  40.         $this->metaDescription $metaDescription;
  41.         return $this;
  42.     }
  43.     public function getMetaRobots(): string
  44.     {
  45.         return $this->metaRobots;
  46.     }
  47.     public function setMetaRobots(string $metaRobots): self
  48.     {
  49.         $this->metaRobots $metaRobots;
  50.         return $this;
  51.     }
  52. }