@@ -6,6 +6,9 @@ discard block |
||
6 | 6 | |
7 | 7 | private static $instance; |
8 | 8 | |
9 | + /** |
|
10 | + * @param string $root_url |
|
11 | + */ |
|
9 | 12 | function __construct( $root_url ) { |
10 | 13 | |
11 | 14 | $this->root_url = $root_url; |
@@ -36,6 +39,9 @@ discard block |
||
36 | 39 | |
37 | 40 | } |
38 | 41 | |
42 | + /** |
|
43 | + * @param string $endpoint |
|
44 | + */ |
|
39 | 45 | function fetch( $endpoint, $ttl = 10 ) { |
40 | 46 | |
41 | 47 | $request_url = $this->root_url . $endpoint; |