1 | <?php |
||
23 | class LoadBalancer extends AbstractApi |
||
24 | { |
||
25 | /** |
||
26 | * @return LoadBalancerEntity[] |
||
27 | */ |
||
28 | public function getAll() |
||
40 | |||
41 | /** |
||
42 | * @param string $id |
||
43 | * |
||
44 | * @throws HttpException |
||
45 | * |
||
46 | * @return LoadBalancerEntity |
||
47 | */ |
||
48 | public function getById($id) |
||
56 | |||
57 | /** |
||
58 | * @param string $name |
||
59 | * @param string $region |
||
60 | * @param array|ForwardRuleEntity[] $forwardRules |
||
61 | * @param string $algorithm |
||
62 | * @param array|HealthCheckEntity[] $healthCheck |
||
63 | * @param array|StickySessionEntity[] $stickySessions |
||
64 | * @param array $dropletIds |
||
65 | * @param bool $httpsRedirect |
||
66 | * |
||
67 | * @throws HttpException |
||
68 | * |
||
69 | * @return LoadBalancerEntity |
||
70 | */ |
||
71 | public function create( |
||
98 | |||
99 | /** |
||
100 | * @param string $id |
||
101 | * @param array|LoadBalancerEntity $loadBalancerSpec |
||
102 | * |
||
103 | * @throws HttpException |
||
104 | * |
||
105 | * @return LoadBalancerEntity |
||
106 | */ |
||
107 | public function update($id, $loadBalancerSpec) |
||
117 | |||
118 | /** |
||
119 | * @param string $id |
||
120 | * |
||
121 | * @throws HttpException |
||
122 | */ |
||
123 | public function delete($id) |
||
127 | |||
128 | /** |
||
129 | * @param array|AbstractEntity $forwardRules |
||
130 | * |
||
131 | * @return array |
||
132 | */ |
||
133 | private function formatForwardRules($forwardRules) |
||
146 | |||
147 | /** |
||
148 | * @param array|AbstractEntity $config |
||
149 | * |
||
150 | * @return array|AbstractEntity |
||
151 | */ |
||
152 | private function formatConfigurationOptions($config) |
||
156 | } |
||
157 |
This check looks at variables that have been passed in as parameters and are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.