1 | <?php |
||
17 | final class Factory |
||
18 | { |
||
19 | /** |
||
20 | * not need Authorization |
||
21 | * @var array { |
||
22 | * 'origin.example.com' => x |
||
23 | * } |
||
24 | */ |
||
25 | private static $connections = array(); |
||
26 | |||
27 | /** |
||
28 | * need Authorization header |
||
29 | * @var array { |
||
30 | * 'origin.example.com' => x |
||
31 | * } |
||
32 | */ |
||
33 | private static $authConnections = array(); |
||
34 | |||
35 | /** |
||
36 | * get cached curl handler |
||
37 | * @param string $origin |
||
38 | * @param bool $auth |
||
39 | * @return resource<curl> |
||
|
|||
40 | */ |
||
41 | 6 | public static function getConnection($origin, $auth = false) |
|
57 | |||
58 | /** |
||
59 | * @param string $origin domain text |
||
60 | * @param string $url |
||
61 | * @param IO\IOInterface $io |
||
62 | * @param CConfig $config |
||
63 | * @param array $pluginConfig |
||
64 | * @return Aspects\HttpGetRequest |
||
65 | */ |
||
66 | 5 | public static function getHttpGetRequest($origin, $url, IO\IOInterface $io, CConfig $config, array $pluginConfig) |
|
92 | |||
93 | /** |
||
94 | * @return Aspects\JoinPoint |
||
95 | */ |
||
96 | 6 | public static function getPreEvent(Aspects\HttpGetRequest $req) |
|
104 | |||
105 | /** |
||
106 | * @return Aspects\JoinPoint |
||
107 | */ |
||
108 | 6 | public static function getPostEvent(Aspects\HttpGetRequest $req) |
|
114 | |||
115 | /** |
||
116 | * @return Aspects\AspectAuth (same instance) |
||
117 | */ |
||
118 | 7 | public static function getAspectAuth() |
|
123 | } |
||
124 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.