1 | <?php |
||
67 | class CirclesManager { |
||
68 | |||
69 | |||
70 | /** @var CirclesQueryHelper */ |
||
71 | private $circlesQueryHelper; |
||
72 | |||
73 | /** @var FederatedUserService */ |
||
74 | private $federatedUserService; |
||
75 | |||
76 | /** @var CircleService */ |
||
77 | private $circleService; |
||
78 | |||
79 | /** @var MemberService */ |
||
80 | private $memberService; |
||
81 | |||
82 | |||
83 | /** |
||
84 | * CirclesManager constructor. |
||
85 | * |
||
86 | * @param IUserSession $userSession |
||
|
|||
87 | * @param FederatedUserService $federatedUserService |
||
88 | * @param CircleService $circleService |
||
89 | * @param MemberService $memberService |
||
90 | * @param CirclesQueryHelper $circlesQueryHelper |
||
91 | */ |
||
92 | public function __construct( |
||
103 | |||
104 | |||
105 | /** |
||
106 | * @param string $federatedId |
||
107 | * @param int $type |
||
108 | * |
||
109 | * @return FederatedUser |
||
110 | * @throws CircleNotFoundException |
||
111 | * @throws FederatedItemException |
||
112 | * @throws FederatedUserException |
||
113 | * @throws FederatedUserNotFoundException |
||
114 | * @throws InvalidIdException |
||
115 | * @throws MemberNotFoundException |
||
116 | * @throws OwnerNotFoundException |
||
117 | * @throws RemoteInstanceException |
||
118 | * @throws RemoteNotFoundException |
||
119 | * @throws RemoteResourceNotFoundException |
||
120 | * @throws RequestBuilderException |
||
121 | * @throws SingleCircleNotFoundException |
||
122 | * @throws UnknownRemoteException |
||
123 | * @throws UserTypeNotFoundException |
||
124 | */ |
||
125 | public function getFederatedUser(string $federatedId, int $type = Member::TYPE_SINGLE): FederatedUser { |
||
128 | |||
129 | |||
130 | /** |
||
131 | * @throws FederatedUserNotFoundException |
||
132 | * @throws SingleCircleNotFoundException |
||
133 | * @throws RequestBuilderException |
||
134 | * @throws InvalidIdException |
||
135 | * @throws FederatedUserException |
||
136 | */ |
||
137 | public function startSession(?FederatedUser $federatedUser = null): void { |
||
144 | |||
145 | /** |
||
146 | * |
||
147 | */ |
||
148 | public function startSuperSession(): void { |
||
152 | |||
153 | /** |
||
154 | * |
||
155 | */ |
||
156 | public function stopSession(): void { |
||
160 | |||
161 | |||
162 | /** |
||
163 | * @return IFederatedUser |
||
164 | * @throws FederatedUserException |
||
165 | * @throws FederatedUserNotFoundException |
||
166 | * @throws InvalidIdException |
||
167 | * @throws RequestBuilderException |
||
168 | * @throws SingleCircleNotFoundException |
||
169 | */ |
||
170 | public function getCurrentFederatedUser(): IFederatedUser { |
||
173 | |||
174 | |||
175 | /** |
||
176 | * @return CirclesQueryHelper |
||
177 | */ |
||
178 | public function getQueryHelper(): CirclesQueryHelper { |
||
181 | |||
182 | |||
183 | /** |
||
184 | * @param string $name |
||
185 | * @param FederatedUser|null $owner |
||
186 | * @param bool $personal |
||
187 | * @param bool $local |
||
188 | * |
||
189 | * @return Circle |
||
190 | * @throws FederatedEventException |
||
191 | * @throws InitiatorNotConfirmedException |
||
192 | * @throws FederatedItemException |
||
193 | * @throws InitiatorNotFoundException |
||
194 | * @throws InvalidItemException |
||
195 | * @throws OwnerNotFoundException |
||
196 | * @throws RemoteInstanceException |
||
197 | * @throws RemoteNotFoundException |
||
198 | * @throws RemoteResourceNotFoundException |
||
199 | * @throws RequestBuilderException |
||
200 | * @throws UnknownRemoteException |
||
201 | */ |
||
202 | public function createCircle( |
||
214 | |||
215 | |||
216 | /** |
||
217 | * @param string $singleId |
||
218 | * |
||
219 | * @throws CircleNotFoundException |
||
220 | * @throws FederatedEventException |
||
221 | * @throws FederatedItemException |
||
222 | * @throws InitiatorNotConfirmedException |
||
223 | * @throws InitiatorNotFoundException |
||
224 | * @throws OwnerNotFoundException |
||
225 | * @throws RemoteInstanceException |
||
226 | * @throws RemoteNotFoundException |
||
227 | * @throws RemoteResourceNotFoundException |
||
228 | * @throws RequestBuilderException |
||
229 | * @throws UnknownRemoteException |
||
230 | */ |
||
231 | public function destroyCircle(string $singleId): void { |
||
234 | |||
235 | |||
236 | /** |
||
237 | * returns Circles available, based on current session |
||
238 | * |
||
239 | * @return Circle[] |
||
240 | * @throws InitiatorNotFoundException |
||
241 | * @throws RequestBuilderException |
||
242 | */ |
||
243 | public function getCircles(): array { |
||
246 | |||
247 | |||
248 | /** |
||
249 | * @param string $singleId |
||
250 | * |
||
251 | * @return Circle |
||
252 | * @throws CircleNotFoundException |
||
253 | * @throws InitiatorNotFoundException |
||
254 | * @throws RequestBuilderException |
||
255 | */ |
||
256 | public function getCircle(string $singleId): Circle { |
||
259 | |||
260 | |||
261 | |||
262 | /** |
||
263 | * WIP |
||
264 | * |
||
265 | * @return Circle[] |
||
266 | * @throws InitiatorNotFoundException |
||
267 | * @throws RequestBuilderException |
||
268 | */ |
||
269 | // public function getAllCircles(): array { |
||
270 | // $this->federatedUserService->bypassCurrentUserCondition(true); |
||
271 | // $this->circleService->getCircles(); |
||
272 | // } |
||
273 | |||
274 | |||
275 | /** |
||
276 | * WIP |
||
277 | * |
||
278 | * @param string $circleId |
||
279 | * @param string $singleId |
||
280 | * |
||
281 | * @return Member |
||
282 | * @throws InitiatorNotFoundException |
||
283 | * @throws MemberNotFoundException |
||
284 | * @throws RequestBuilderException |
||
285 | */ |
||
286 | // public function getMember(string $circleId, string $singleId): Member { |
||
287 | // $this->federatedUserService->bypassCurrentUserCondition(true); |
||
288 | // $this->memberService->getMemberById($circleId, $singleId); |
||
289 | // } |
||
290 | |||
291 | |||
292 | /** |
||
293 | * WIP |
||
294 | * |
||
295 | * @param string $memberId |
||
296 | * |
||
297 | * @return Member |
||
298 | */ |
||
299 | // public function getMemberById(string $memberId): Member { |
||
300 | |||
301 | |||
302 | } |
||
303 | |||
304 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.