| 1 | <?php |
||
| 19 | class AllowClient implements ClientInterface, RobotsTxtInterface |
||
| 20 | { |
||
| 21 | use DirectiveClientTrait; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Paths |
||
| 25 | * @var array |
||
| 26 | */ |
||
| 27 | private $paths; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * AllowClient constructor. |
||
| 31 | * |
||
| 32 | * @param string[] $paths |
||
| 33 | */ |
||
| 34 | public function __construct(array $paths) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Check |
||
| 41 | * |
||
| 42 | * @deprecated 2.1.0 |
||
| 43 | * @see AllowClient::isCovered() |
||
| 44 | * |
||
| 45 | * @param string $uri |
||
| 46 | * @return int|false |
||
| 47 | */ |
||
| 48 | public function hasPath($uri) |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Get the most specific rule |
||
| 55 | * |
||
| 56 | * @param string $uri |
||
| 57 | * @return string|false |
||
| 58 | */ |
||
| 59 | public function isCovered($uri) |
||
| 63 | |||
| 64 | /** |
||
| 65 | * Export |
||
| 66 | * |
||
| 67 | * @return array |
||
| 68 | */ |
||
| 69 | public function export() |
||
| 73 | } |
||
| 74 |