@@ -8,13 +8,13 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace flipbox\organizations\relationships; |
| 10 | 10 | |
| 11 | +use Tightenco\Collect\Support\Collection; |
|
| 11 | 12 | use craft\elements\User; |
| 12 | 13 | use craft\helpers\ArrayHelper; |
| 13 | 14 | use flipbox\organizations\elements\Organization; |
| 14 | 15 | use flipbox\organizations\queries\OrganizationQuery; |
| 15 | 16 | use flipbox\organizations\queries\UserAssociationQuery; |
| 16 | 17 | use flipbox\organizations\records\UserAssociation; |
| 17 | -use Tightenco\Collect\Support\Collection; |
|
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * Manages Organizations associated to Users |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | * |
| 138 | 138 | * @param $objects |
| 139 | 139 | * @param array $attributes |
| 140 | - * @return RelationshipInterface |
|
| 140 | + * @return RelationshipTrait |
|
| 141 | 141 | */ |
| 142 | 142 | public function add($objects, array $attributes = []): RelationshipInterface |
| 143 | 143 | { |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | /** |
| 152 | 152 | * @param $object |
| 153 | 153 | * @param array $attributes |
| 154 | - * @return RelationshipInterface |
|
| 154 | + * @return RelationshipTrait |
|
| 155 | 155 | */ |
| 156 | 156 | private function addOne($object, array $attributes = []): RelationshipInterface |
| 157 | 157 | { |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | |
| 188 | 188 | /** |
| 189 | 189 | * @param $objects |
| 190 | - * @return RelationshipInterface |
|
| 190 | + * @return RelationshipTrait |
|
| 191 | 191 | */ |
| 192 | 192 | public function remove($objects): RelationshipInterface |
| 193 | 193 | { |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | |
| 244 | 244 | /** |
| 245 | 245 | * Reset associations |
| 246 | - * @return RelationshipInterface |
|
| 246 | + * @return RelationshipTrait |
|
| 247 | 247 | */ |
| 248 | 248 | public function reset(): RelationshipInterface |
| 249 | 249 | { |
@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | |
| 255 | 255 | /** |
| 256 | 256 | * Reset associations |
| 257 | - * @return RelationshipInterface |
|
| 257 | + * @return RelationshipTrait |
|
| 258 | 258 | */ |
| 259 | 259 | public function clear(): RelationshipInterface |
| 260 | 260 | { |
@@ -335,7 +335,7 @@ discard block |
||
| 335 | 335 | * Update a relation that's already association. |
| 336 | 336 | * |
| 337 | 337 | * @param Collection $collection |
| 338 | - * @param $association |
|
| 338 | + * @param ActiveRecord $association |
|
| 339 | 339 | */ |
| 340 | 340 | protected function updateCollection(Collection $collection, $association) |
| 341 | 341 | { |