t1gor/Robots.txt-Parser-Class

View on GitHub
source/Parser/DirectiveProcessors/DirectiveProcessorInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php declare(strict_types=1);
 
namespace t1gor\RobotsTxtParser\Parser\DirectiveProcessors;
 
use Psr\Log\LoggerInterface;
 
Opening brace of a interface must be on the line after the definition
interface DirectiveProcessorInterface {
 
Spaces must be used to indent lines; tabs are not allowed
public function __construct(?LoggerInterface $logger = null);
 
Spaces must be used to indent lines; tabs are not allowed
public function getDirectiveName(): string;
 
Spaces must be used to indent lines; tabs are not allowed
public function matches(string $line): bool;
 
Spaces must be used to indent lines; tabs are not allowed
public function process(string $line, array & $root, string & $currentUserAgent = '*', string $prevLine = '');
}