Total Complexity | 6 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class ApiReader implements Reader |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | protected string $endpoint; |
||
13 | |||
14 | /** |
||
15 | * ApiReader constructor. |
||
16 | */ |
||
17 | public function __construct () |
||
18 | { |
||
19 | |||
20 | } |
||
21 | |||
22 | /** |
||
23 | * @return string |
||
24 | */ |
||
25 | public function getEndpoint () : string |
||
26 | { |
||
27 | return $this->endpoint; |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @param string $endpoint |
||
32 | */ |
||
33 | public function setEndpoint ( string $endpoint ) : void |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * @return bool|string |
||
40 | * @throws SourceWatcherException |
||
41 | */ |
||
42 | public function read () |
||
61 | } |
||
62 | } |
||
63 |