1 | <?php |
||
19 | class CommentClient implements ClientInterface, RobotsTxtInterface |
||
20 | { |
||
21 | /** |
||
22 | * Base uri |
||
23 | * @var string |
||
24 | */ |
||
25 | private $base; |
||
26 | |||
27 | /** |
||
28 | * User-agent |
||
29 | * @var string |
||
30 | */ |
||
31 | private $userAgent; |
||
32 | |||
33 | /** |
||
34 | * Comments |
||
35 | * @var string[] |
||
36 | */ |
||
37 | private $comments = []; |
||
38 | |||
39 | /** |
||
40 | * CommentClient constructor. |
||
41 | * |
||
42 | * @param string $base |
||
43 | * @param string $userAgent |
||
44 | * @param array $comments |
||
45 | */ |
||
46 | public function __construct($base, $userAgent, array $comments) |
||
52 | |||
53 | /** |
||
54 | * Get |
||
55 | * |
||
56 | * @return string[] |
||
57 | */ |
||
58 | public function get() |
||
62 | |||
63 | /** |
||
64 | * Export |
||
65 | * |
||
66 | * @return string[] |
||
67 | */ |
||
68 | public function export() |
||
72 | } |
||
73 |