@@ -59,7 +59,7 @@ |
||
| 59 | 59 | public $queryClass; |
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | - * @return \static New self without any initializations. |
|
| 62 | + * @return EntityTrait New self without any initializations. |
|
| 63 | 63 | */ |
| 64 | 64 | public static function buildNoInitModel() |
| 65 | 65 | { |
@@ -96,7 +96,7 @@ |
||
| 96 | 96 | /** |
| 97 | 97 | * Validate the auth key. |
| 98 | 98 | * @param string $authKey |
| 99 | - * @return string |
|
| 99 | + * @return boolean |
|
| 100 | 100 | */ |
| 101 | 101 | public function validateAuthKey($authKey) |
| 102 | 102 | { |
@@ -144,7 +144,7 @@ |
||
| 144 | 144 | |
| 145 | 145 | /** |
| 146 | 146 | * Check if $identity existed. |
| 147 | - * @param mixed $identity |
|
| 147 | + * @param integer $identity |
|
| 148 | 148 | * @return boolean |
| 149 | 149 | */ |
| 150 | 150 | public function checkIdExists($identity) |
@@ -144,7 +144,7 @@ |
||
| 144 | 144 | * If you disable($this->enableIP = false) the IP feature, this method will |
| 145 | 145 | * be skipped(return null). |
| 146 | 146 | * @param string $ipAddress the significantly IP address. |
| 147 | - * @return string|integer|null Integer when succeeded to convert. |
|
| 147 | + * @return null|integer Integer when succeeded to convert. |
|
| 148 | 148 | */ |
| 149 | 149 | public function setIPAddress($ipAddress) |
| 150 | 150 | { |
@@ -134,7 +134,7 @@ |
||
| 134 | 134 | * Set values in batch. |
| 135 | 135 | * @param array $keys meta key-value pairs. |
| 136 | 136 | * @param string $createdBy |
| 137 | - * @return false if $keys is not an array. |
|
| 137 | + * @return false|null if $keys is not an array. |
|
| 138 | 138 | */ |
| 139 | 139 | public static function sets($keys, $createdBy = null) |
| 140 | 140 | { |
@@ -105,7 +105,7 @@ |
||
| 105 | 105 | |
| 106 | 106 | /** |
| 107 | 107 | * Get whether this relation is favorite or not. |
| 108 | - * @return boolean |
|
| 108 | + * @return boolean|null |
|
| 109 | 109 | */ |
| 110 | 110 | public function getIsFavorite() |
| 111 | 111 | { |
@@ -173,7 +173,7 @@ |
||
| 173 | 173 | /** |
| 174 | 174 | * @inheritdoc |
| 175 | 175 | * You can override this method if enabled fields cannot meet you requirements. |
| 176 | - * @return array |
|
| 176 | + * @return string[] |
|
| 177 | 177 | */ |
| 178 | 178 | public function attributes() |
| 179 | 179 | { |
@@ -245,7 +245,7 @@ discard block |
||
| 245 | 245 | * Add a child. |
| 246 | 246 | * But if children limit reached, false will be given. |
| 247 | 247 | * @param static $child |
| 248 | - * @return boolean Whether adding child succeeded or not. |
|
| 248 | + * @return false|string Whether adding child succeeded or not. |
|
| 249 | 249 | */ |
| 250 | 250 | public function addChild($child) |
| 251 | 251 | { |
@@ -256,7 +256,7 @@ discard block |
||
| 256 | 256 | * Event triggered before deleting itself. |
| 257 | 257 | * Note: DO NOT call it directly unless you know the consequences. |
| 258 | 258 | * @param ModelEvent $event |
| 259 | - * @return boolean true if parentAttribute not specified. |
|
| 259 | + * @return boolean|null true if parentAttribute not specified. |
|
| 260 | 260 | * @throws IntegrityException throw if $throwRestrictException is true when $onDeleteType is on restrict. |
| 261 | 261 | */ |
| 262 | 262 | public function onDeleteChildren($event) |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | * Event triggered before updating itself. |
| 291 | 291 | * Note: DO NOT call it directly unless you know the consequences. |
| 292 | 292 | * @param ModelEvent $event |
| 293 | - * @return boolean true if parentAttribute not specified. |
|
| 293 | + * @return boolean|null true if parentAttribute not specified. |
|
| 294 | 294 | * @throws IntegrityException throw if $throwRestrictException is true when $onUpdateType is on restrict. |
| 295 | 295 | */ |
| 296 | 296 | public function onUpdateChildren($event) |
@@ -618,7 +618,7 @@ discard block |
||
| 618 | 618 | * Update children's parent attribute. |
| 619 | 619 | * Event triggered before updating. |
| 620 | 620 | * @param ModelEvent $event |
| 621 | - * @return boolean |
|
| 621 | + * @return boolean|null |
|
| 622 | 622 | */ |
| 623 | 623 | public function onParentRefIdChanged($event) |
| 624 | 624 | { |
@@ -122,7 +122,7 @@ |
||
| 122 | 122 | * Get updater who updated this blameable model recently. |
| 123 | 123 | * NOTICE! This method will not check whether `$hostClass` exists. You should |
| 124 | 124 | * specify it in `init()` method. |
| 125 | - * @return BaseUserQuery user. |
|
| 125 | + * @return null|\yii\dbActiveQueryInterface user. |
|
| 126 | 126 | */ |
| 127 | 127 | public function getUpdater() |
| 128 | 128 | { |