| 1 | <?php |
||
| 12 | class VisitTimeParser implements ParserInterface, RobotsTxtInterface |
||
| 13 | { |
||
| 14 | use DirectiveParserCommons; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * VisitTime array |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | private $visitTimes = []; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * VisitTime constructor. |
||
| 24 | */ |
||
| 25 | public function __construct() |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Add |
||
| 31 | * |
||
| 32 | * @param string $line |
||
| 33 | * @return bool |
||
| 34 | */ |
||
| 35 | public function add($line) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Client |
||
| 47 | * |
||
| 48 | * @return VisitTimeClient |
||
| 49 | */ |
||
| 50 | public function client() |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Render |
||
| 57 | * |
||
| 58 | * @return string[] |
||
| 59 | */ |
||
| 60 | public function render() |
||
| 69 | } |
||
| 70 |