@@ -32,7 +32,7 @@ |
||
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | - * @param object $entity |
|
| 35 | + * @param \AppBundle\Entity\Event $entity |
|
| 36 | 36 | */ |
| 37 | 37 | public function remove($entity) |
| 38 | 38 | { |
@@ -400,7 +400,7 @@ |
||
| 400 | 400 | } |
| 401 | 401 | |
| 402 | 402 | /** |
| 403 | - * @return ApiError|CreatedApiResponse|EmptyApiResponse |
|
| 403 | + * @return AbstractApiResponse |
|
| 404 | 404 | */ |
| 405 | 405 | private function createResponseFromUpdateForm(FormInterface $form): AbstractApiResponse |
| 406 | 406 | { |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | /** |
| 102 | - * @param string|int $id |
|
| 102 | + * @param string $id |
|
| 103 | 103 | */ |
| 104 | 104 | protected function viewEntity(AbstractRepository $repository, $id): Response |
| 105 | 105 | { |
@@ -108,6 +108,9 @@ |
||
| 108 | 108 | return new CreatedApiResponse($location); |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | + /** |
|
| 112 | + * @param \AppBundle\Entity\Infrasctucture\Ambassador $entity |
|
| 113 | + */ |
|
| 111 | 114 | private function createEntityHttpLocation($entity): string |
| 112 | 115 | { |
| 113 | 116 | $entityShortName = (new \ReflectionClass($entity))->getShortName(); |
@@ -74,6 +74,11 @@ |
||
| 74 | 74 | return $ambassador; |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | + /** |
|
| 78 | + * @param Band $ambassador |
|
| 79 | + * |
|
| 80 | + * @return BandMember |
|
| 81 | + */ |
|
| 77 | 82 | private function getMemberByAmbassadorAndLogin( |
| 78 | 83 | $ambassador, |
| 79 | 84 | $memberLogin, |