| 1 | <?php |
||
| 20 | class RobotVersionParser implements ParserInterface, RobotsTxtInterface |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * RobotVersion value |
||
| 24 | * @var float|int|string |
||
| 25 | */ |
||
| 26 | private $version; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * RobotVersionParser constructor. |
||
| 30 | */ |
||
| 31 | public function __construct() |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Add |
||
| 37 | * |
||
| 38 | * @param float|int|string $line |
||
| 39 | * @return bool |
||
| 40 | */ |
||
| 41 | public function add($line) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Client |
||
| 52 | * |
||
| 53 | * @return RobotVersionClient |
||
| 54 | */ |
||
| 55 | public function client() |
||
| 59 | |||
| 60 | /** |
||
| 61 | * Render |
||
| 62 | * |
||
| 63 | * @param RenderHandler $handler |
||
| 64 | * @return bool |
||
| 65 | */ |
||
| 66 | public function render(RenderHandler $handler) |
||
| 73 | } |
||
| 74 |