| 1 | <?php |
||
| 12 | class VisitTime implements DirectiveInterface, RobotsTxtInterface |
||
| 13 | { |
||
| 14 | use Toolbox; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Directive |
||
| 18 | */ |
||
| 19 | const DIRECTIVE = self::DIRECTIVE_VISIT_TIME; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * VisitTime array |
||
| 23 | * @var array |
||
| 24 | */ |
||
| 25 | protected $array = []; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * VisitTime constructor. |
||
| 29 | */ |
||
| 30 | public function __construct() |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Add |
||
| 36 | * |
||
| 37 | * @param string $line |
||
| 38 | * @return bool |
||
| 39 | */ |
||
| 40 | public function add($line) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Export rules |
||
| 52 | * |
||
| 53 | * @return string[][] |
||
| 54 | */ |
||
| 55 | public function export() |
||
| 59 | |||
| 60 | /** |
||
| 61 | * Render |
||
| 62 | * |
||
| 63 | * @return string[] |
||
| 64 | */ |
||
| 65 | public function render() |
||
| 73 | } |
||
| 74 |