1 | <?php |
||
11 | class CommentClient implements RobotsTxtInterface |
||
12 | { |
||
13 | /** |
||
14 | * Base Uri |
||
15 | * @var string |
||
16 | */ |
||
17 | private $base; |
||
18 | |||
19 | /** |
||
20 | * User-agent |
||
21 | * @var string |
||
22 | */ |
||
23 | private $userAgent; |
||
24 | |||
25 | /** |
||
26 | * Comments |
||
27 | * @var string[] |
||
28 | */ |
||
29 | private $comments = []; |
||
30 | |||
31 | /** |
||
32 | * Fetched status |
||
33 | * @var bool |
||
34 | */ |
||
35 | private $fetched = false; |
||
36 | |||
37 | /** |
||
38 | * CommentClient constructor. |
||
39 | * |
||
40 | * @param string $base |
||
41 | * @param string $userAgent |
||
42 | * @param array $comments |
||
43 | */ |
||
44 | public function __construct($base, $userAgent, array $comments) |
||
50 | |||
51 | /** |
||
52 | * CommentClient destructor. |
||
53 | */ |
||
54 | public function __destruct() |
||
63 | |||
64 | /** |
||
65 | * Get |
||
66 | * |
||
67 | * @return string[] |
||
68 | */ |
||
69 | public function get() |
||
74 | |||
75 | /** |
||
76 | * Export |
||
77 | * |
||
78 | * @return string[] |
||
79 | */ |
||
80 | public function export() |
||
85 | } |
||
86 |