Sobak/scrawler

View on GitHub
src/Block/RobotsParser/AbstractRobotsParser.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace Sobak\Scrawler\Block\RobotsParser;

abstract class AbstractRobotsParser implements RobotsParserInterface
{
    protected $userAgent;

    public function __construct(string $userAgent = 'Scrawler')
    {
        $this->userAgent = $userAgent;
    }

    public function getUserAgent(): string
    {
        return $this->userAgent;
    }
}