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 | 6 | * @param bool $auth |
|
39 | * @return resource<curl> |
||
|
|||
40 | 6 | */ |
|
41 | 1 | public static function getConnection($origin, $auth = false) |
|
57 | |||
58 | 6 | /** |
|
59 | * @param string $origin domain text |
||
60 | 6 | * @param string $url |
|
61 | 6 | * @param IO\IOInterface $io |
|
62 | 6 | * @param CConfig $config |
|
63 | 6 | * @param array $pluginConfig |
|
64 | 6 | * @return Aspects\HttpGetRequest |
|
65 | */ |
||
66 | public static function getHttpGetRequest($origin, $url, IO\IOInterface $io, CConfig $config, array $pluginConfig) |
||
92 | |||
93 | /** |
||
94 | * @return Aspects\JoinPoint |
||
95 | */ |
||
96 | public static function getPreEvent(Aspects\HttpGetRequest $req) |
||
104 | |||
105 | /** |
||
106 | * @return Aspects\JoinPoint |
||
107 | */ |
||
108 | public static function getPostEvent(Aspects\HttpGetRequest $req) |
||
114 | |||
115 | /** |
||
116 | * @return Aspects\AspectAuth (same instance) |
||
117 | */ |
||
118 | 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.