@@ -56,7 +56,7 @@ |
||
56 | 56 | * is called by authentication listeners inheriting from AbstractAuthenticationListener. |
57 | 57 | * @param Request $request |
58 | 58 | * @param TokenInterface $token |
59 | - * @return Response The response to return |
|
59 | + * @return RedirectResponse The response to return |
|
60 | 60 | */ |
61 | 61 | function onAuthenticationSuccess(Request $request, TokenInterface $token) |
62 | 62 | { |
@@ -62,12 +62,18 @@ discard block |
||
62 | 62 | return $this; |
63 | 63 | } |
64 | 64 | |
65 | + /** |
|
66 | + * @param integer $var |
|
67 | + */ |
|
65 | 68 | public function setPerPage($var) |
66 | 69 | { |
67 | 70 | $this->perPage = $var; |
68 | 71 | return $this; |
69 | 72 | } |
70 | 73 | |
74 | + /** |
|
75 | + * @param integer $var |
|
76 | + */ |
|
71 | 77 | public function setMaxResult($var) |
72 | 78 | { |
73 | 79 | $this->maxResult = $var; |
@@ -76,7 +82,6 @@ discard block |
||
76 | 82 | |
77 | 83 | /** |
78 | 84 | * @deprecated since version 1.1.0 |
79 | - * @param QueryBuilder $var |
|
80 | 85 | * @return GridHelper |
81 | 86 | */ |
82 | 87 | public function setQueryBuilder(QueryBuilder &$queryBuilder) |
@@ -177,6 +182,9 @@ discard block |
||
177 | 182 | return $this->infiniteGrid; |
178 | 183 | } |
179 | 184 | |
185 | + /** |
|
186 | + * @param string $var |
|
187 | + */ |
|
180 | 188 | public function setId($var) |
181 | 189 | { |
182 | 190 | $this->id = $var; |
@@ -188,12 +196,18 @@ discard block |
||
188 | 196 | return $this->id; |
189 | 197 | } |
190 | 198 | |
199 | + /** |
|
200 | + * @param string $var |
|
201 | + */ |
|
191 | 202 | public function setRoute($var) |
192 | 203 | { |
193 | 204 | $this->route = $var; |
194 | 205 | return $this; |
195 | 206 | } |
196 | 207 | |
208 | + /** |
|
209 | + * @param string[] $var |
|
210 | + */ |
|
197 | 211 | public function setRouteParams($var) |
198 | 212 | { |
199 | 213 | $this->routeParams = $var; |
@@ -210,6 +210,9 @@ |
||
210 | 210 | return $this->loadUserByUsername($user->getFacebookId()); |
211 | 211 | } |
212 | 212 | |
213 | + /** |
|
214 | + * @param string $username |
|
215 | + */ |
|
213 | 216 | private function prepareFacebookUsername($username, $fbdata) |
214 | 217 | { |
215 | 218 | $defaultUsername = $username.'@facebook.com'; |
@@ -169,6 +169,7 @@ discard block |
||
169 | 169 | |
170 | 170 | /** |
171 | 171 | * Set defaultTitle |
172 | + * @param string $defaultTitle |
|
172 | 173 | */ |
173 | 174 | public function setDefaultTitle($defaultTitle) |
174 | 175 | { |
@@ -393,13 +394,16 @@ discard block |
||
393 | 394 | } |
394 | 395 | |
395 | 396 | /** |
396 | - * @return ClientInterface |
|
397 | + * @return string |
|
397 | 398 | */ |
398 | 399 | public function getClient() |
399 | 400 | { |
400 | 401 | return $this->client; |
401 | 402 | } |
402 | 403 | |
404 | + /** |
|
405 | + * @param Client $client |
|
406 | + */ |
|
403 | 407 | public function setClient($client) |
404 | 408 | { |
405 | 409 | $this->client = $client; |
@@ -436,8 +440,8 @@ discard block |
||
436 | 440 | |
437 | 441 | /** |
438 | 442 | * Sets the Unique Id of the Entity. |
439 | - * @param string $id the entity UID |
|
440 | - * @return AbstractUniqueEntity |
|
443 | + * @param string $uid the entity UID |
|
444 | + * @return Category |
|
441 | 445 | */ |
442 | 446 | public function setUid($uid = null) |
443 | 447 | { |
@@ -145,7 +145,7 @@ |
||
145 | 145 | /** |
146 | 146 | * Get responseCode |
147 | 147 | * |
148 | - * @return string |
|
148 | + * @return integer |
|
149 | 149 | */ |
150 | 150 | public function getResponseCode() |
151 | 151 | { |
@@ -385,6 +385,9 @@ discard block |
||
385 | 385 | return $this->level; |
386 | 386 | } |
387 | 387 | |
388 | + /** |
|
389 | + * @param integer $level |
|
390 | + */ |
|
388 | 391 | public function setLevel($level) |
389 | 392 | { |
390 | 393 | switch ($level) { |
@@ -426,6 +429,9 @@ discard block |
||
426 | 429 | return $this->htmlTemplate; |
427 | 430 | } |
428 | 431 | |
432 | + /** |
|
433 | + * @param string $var |
|
434 | + */ |
|
429 | 435 | public function parseHtmlTemplate($var) |
430 | 436 | { |
431 | 437 | $cplaces = array('%title%' => $this->title, '%shorttext%' => $this->shortText); |
@@ -53,6 +53,9 @@ discard block |
||
53 | 53 | } |
54 | 54 | } |
55 | 55 | |
56 | + /** |
|
57 | + * @param PersonInterface $person |
|
58 | + */ |
|
56 | 59 | public function getTotalUnreadGroupByClient($person) |
57 | 60 | { |
58 | 61 | $qb = $this->getEntityManager()->createQueryBuilder('n') |
@@ -70,6 +73,9 @@ discard block |
||
70 | 73 | ->getResult(); |
71 | 74 | } |
72 | 75 | |
76 | + /** |
|
77 | + * @param PersonInterface $person |
|
78 | + */ |
|
73 | 79 | public function getTotalUnread($person) |
74 | 80 | { |
75 | 81 | return $this->getEntityManager()->createQueryBuilder('n') |
@@ -372,6 +372,9 @@ |
||
372 | 372 | return $this->oauthDefaultClient; |
373 | 373 | } |
374 | 374 | |
375 | + /** |
|
376 | + * @param resource $ch |
|
377 | + */ |
|
375 | 378 | protected function registerFailedCallback(NotificationInterface $notification, |
376 | 379 | ObjectManager $om, $ch, |
377 | 380 | $curlResponse) |
@@ -48,8 +48,8 @@ discard block |
||
48 | 48 | * Same as getAllFromPerson but uses the notification's id as the offset. |
49 | 49 | * |
50 | 50 | * @param PersonInterface $person |
51 | - * @param type $limit |
|
52 | - * @param type $offset the id of the last notification received |
|
51 | + * @param integer $limit |
|
52 | + * @param integer $offset the id of the last notification received |
|
53 | 53 | * @param ClientInterface $client optionally filters by OAuth Client |
54 | 54 | * |
55 | 55 | * @return NotificationInterface[] |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | * Retrieves a person's settings. |
114 | 114 | * |
115 | 115 | * @param PersonInterface $person |
116 | - * @param CategoryInterface $client optionally filter by category |
|
116 | + * @param ClientInterface $client optionally filter by category |
|
117 | 117 | * @param ClientInterface $client optionally filter by client |
118 | 118 | * |
119 | 119 | * @return PersonNotificationOption[] |
@@ -184,7 +184,6 @@ discard block |
||
184 | 184 | /** |
185 | 185 | * Return a person's number of unread notifications grouping by Client |
186 | 186 | * @param PersonInterface $person |
187 | - * @param ClientInterface $client |
|
188 | 187 | * |
189 | 188 | * @return array |
190 | 189 | */ |