diff --git a/src/Robots.php b/src/Robots.php new file mode 100644 index 0000000..cf6671f --- /dev/null +++ b/src/Robots.php @@ -0,0 +1,31 @@ +. + */ + +declare(strict_types = 1); + +namespace Nepttune\Component; + +final class Robots extends BaseComponent +{ + /** @var array */ + private $robots; + + public function __construct(array $robots) + { + $this->robots = $robots; + } + + protected function beforeRender() : void + { + $this->template->robots = $this->robots; + } +}