@@ -7,9 +7,9 @@ |
||
| 7 | 7 | use craft\events\ModelEvent; |
| 8 | 8 | use craft\helpers\ArrayHelper; |
| 9 | 9 | use flipbox\craft\ember\helpers\QueryHelper; |
| 10 | +use flipbox\organizations\Organizations as OrganizationPlugin; |
|
| 10 | 11 | use flipbox\organizations\elements\Organization; |
| 11 | 12 | use flipbox\organizations\objects\OrganizationsAssociatedToUserManager; |
| 12 | -use flipbox\organizations\Organizations as OrganizationPlugin; |
|
| 13 | 13 | use flipbox\organizations\queries\OrganizationQuery; |
| 14 | 14 | use flipbox\organizations\validators\OrganizationsValidator; |
| 15 | 15 | use yii\base\Behavior; |
@@ -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) |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | use flipbox\craft\ember\helpers\QueryHelper; |
| 14 | 14 | use flipbox\organizations\objects\UsersAssociatedToOrganizationManager; |
| 15 | 15 | use flipbox\organizations\queries\OrganizationTypeQuery; |
| 16 | -use flipbox\organizations\records\OrganizationType; |
|
| 17 | 16 | use flipbox\organizations\records\OrganizationType as TypeModel; |
| 18 | 17 | |
| 19 | 18 | /** |
@@ -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 | */ |
@@ -12,8 +12,8 @@ |
||
| 12 | 12 | use craft\helpers\ArrayHelper; |
| 13 | 13 | use craft\helpers\Json; |
| 14 | 14 | use flipbox\craft\ember\helpers\QueryHelper; |
| 15 | -use flipbox\organizations\elements\Organization; |
|
| 16 | 15 | use flipbox\organizations\Organizations; |
| 16 | +use flipbox\organizations\elements\Organization; |
|
| 17 | 17 | use flipbox\organizations\queries\UserAssociationQuery; |
| 18 | 18 | use flipbox\organizations\records\UserAssociation; |
| 19 | 19 | use yii\db\QueryInterface; |
@@ -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 | { |
@@ -11,8 +11,8 @@ |
||
| 11 | 11 | use craft\helpers\ArrayHelper; |
| 12 | 12 | use craft\helpers\Json; |
| 13 | 13 | use flipbox\craft\ember\helpers\QueryHelper; |
| 14 | -use flipbox\organizations\elements\Organization; |
|
| 15 | 14 | use flipbox\organizations\Organizations; |
| 15 | +use flipbox\organizations\elements\Organization; |
|
| 16 | 16 | use flipbox\organizations\queries\OrganizationTypeAssociationQuery; |
| 17 | 17 | use flipbox\organizations\records\OrganizationType; |
| 18 | 18 | use flipbox\organizations\records\OrganizationTypeAssociation; |
@@ -12,8 +12,8 @@ |
||
| 12 | 12 | use craft\helpers\ArrayHelper; |
| 13 | 13 | use craft\helpers\Json; |
| 14 | 14 | use flipbox\craft\ember\helpers\QueryHelper; |
| 15 | -use flipbox\organizations\elements\Organization; |
|
| 16 | 15 | use flipbox\organizations\Organizations; |
| 16 | +use flipbox\organizations\elements\Organization; |
|
| 17 | 17 | use flipbox\organizations\queries\UserAssociationQuery; |
| 18 | 18 | use flipbox\organizations\records\UserAssociation; |
| 19 | 19 | use yii\db\QueryInterface; |