@@ -26,7 +26,6 @@ discard block |
||
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | 28 | * @inheritdoc |
| 29 | - * @param UserAssociation $record |
|
| 30 | 29 | * @return bool |
| 31 | 30 | */ |
| 32 | 31 | abstract protected function performAction(User $user, Organization $organization, int $sortOrder = null): bool; |
@@ -62,7 +61,7 @@ discard block |
||
| 62 | 61 | } |
| 63 | 62 | |
| 64 | 63 | /** |
| 65 | - * @param string|int $identifier |
|
| 64 | + * @param string $identifier |
|
| 66 | 65 | * @return User|null |
| 67 | 66 | */ |
| 68 | 67 | protected function findUser($identifier) |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | /** |
| 70 | 70 | * Set an array or query of user types to a user |
| 71 | 71 | * |
| 72 | - * @param $userTypes |
|
| 72 | + * @param UserTypeQuery $userTypes |
|
| 73 | 73 | * @return $this |
| 74 | 74 | */ |
| 75 | 75 | public function setUserTypes($userTypes) |
@@ -147,7 +147,7 @@ |
||
| 147 | 147 | |
| 148 | 148 | /** |
| 149 | 149 | * @param OrganizationType|null $default |
| 150 | - * @return OrganizationType|mixed|null |
|
| 150 | + * @return OrganizationType|null |
|
| 151 | 151 | * @throws \flipbox\craft\ember\exceptions\RecordNotFoundException |
| 152 | 152 | */ |
| 153 | 153 | private function findActiveType(OrganizationType $default = null) |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | 47 | * @inheritdoc |
| 48 | - * @return OrganizationType|null |
|
| 48 | + * @return \flipbox\craft\ember\records\ActiveRecord|null |
|
| 49 | 49 | */ |
| 50 | 50 | protected function find($identifier) |
| 51 | 51 | { |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | trait DateJoinedMutatorTrait |
| 21 | 21 | { |
| 22 | 22 | /** |
| 23 | - * @param $value |
|
| 23 | + * @param DateTime $value |
|
| 24 | 24 | * @return $this |
| 25 | 25 | */ |
| 26 | 26 | public function setDateJoined($value) |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | /** |
| 91 | - * @param User|self $user |
|
| 91 | + * @param User $user |
|
| 92 | 92 | * @throws Exception |
| 93 | 93 | * @throws \Exception |
| 94 | 94 | * @throws \Throwable |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | } |
| 119 | 119 | |
| 120 | 120 | /** |
| 121 | - * @param User|self $user |
|
| 121 | + * @param User $user |
|
| 122 | 122 | * @return void |
| 123 | 123 | */ |
| 124 | 124 | private function onAfterValidate(User $user) |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | /** |
| 142 | 142 | * Associate types to an organization |
| 143 | 143 | * |
| 144 | - * @param $types |
|
| 144 | + * @param OrganizationType[] $types |
|
| 145 | 145 | * @return $this |
| 146 | 146 | * |
| 147 | 147 | * @deprecated |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | /** |
| 224 | 224 | * Get an associated type by identifier (id/handle) |
| 225 | 225 | * |
| 226 | - * @param $identifier |
|
| 226 | + * @param integer|null $identifier |
|
| 227 | 227 | * @return null|TypeModel |
| 228 | 228 | */ |
| 229 | 229 | public function getType($identifier) |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | *******************************************/ |
| 142 | 142 | |
| 143 | 143 | /** |
| 144 | - * @param $object |
|
| 144 | + * @param Organization $object |
|
| 145 | 145 | * @param int|null $sortOrder |
| 146 | 146 | * @return bool |
| 147 | 147 | */ |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | } |
| 166 | 166 | |
| 167 | 167 | /** |
| 168 | - * @param QueryInterface|Organization[] $objects |
|
| 168 | + * @param \flipbox\organizations\queries\OrganizationQuery $objects |
|
| 169 | 169 | * @return bool |
| 170 | 170 | * @throws \Throwable |
| 171 | 171 | */ |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | *******************************************/ |
| 191 | 191 | |
| 192 | 192 | /** |
| 193 | - * @param $object |
|
| 193 | + * @param Organization $object |
|
| 194 | 194 | * @return bool |
| 195 | 195 | * @throws \Throwable |
| 196 | 196 | * @throws \yii\db\StaleObjectException |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | } |
| 214 | 214 | |
| 215 | 215 | /** |
| 216 | - * @param QueryInterface|Organization[] $objects |
|
| 216 | + * @param \flipbox\organizations\queries\OrganizationQuery $objects |
|
| 217 | 217 | * @return bool |
| 218 | 218 | * @throws \Throwable |
| 219 | 219 | */ |
@@ -450,7 +450,7 @@ |
||
| 450 | 450 | |
| 451 | 451 | /** |
| 452 | 452 | * @param OrganizationTypeAssociation|OrganizationType|int|array|null $type |
| 453 | - * @return array|OrganizationType|null |
|
| 453 | + * @return null|\flipbox\craft\ember\records\ActiveRecord |
|
| 454 | 454 | */ |
| 455 | 455 | protected function resolveType($type = null) |
| 456 | 456 | { |