| 1 | <?php |
||
| 19 | class CommentClient implements ClientInterface, RobotsTxtInterface |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * User-agent |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | private $userAgent; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Comments |
||
| 29 | * @var string[] |
||
| 30 | */ |
||
| 31 | private $comments = []; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * CommentClient constructor. |
||
| 35 | * |
||
| 36 | * @param string $userAgent |
||
| 37 | * @param array $comments |
||
| 38 | */ |
||
| 39 | public function __construct($userAgent, array $comments) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Get |
||
| 47 | * |
||
| 48 | * @return string[] |
||
| 49 | */ |
||
| 50 | public function get() |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Export |
||
| 57 | * |
||
| 58 | * @return string[] |
||
| 59 | */ |
||
| 60 | public function export() |
||
| 64 | } |
||
| 65 |