@@ -95,7 +95,7 @@ |
||
95 | 95 | |
96 | 96 | /** |
97 | 97 | * Specify page condition. |
98 | - * @param string|int $pageSize It will return all models if it is 'all', |
|
98 | + * @param integer $pageSize It will return all models if it is 'all', |
|
99 | 99 | * or it will be regarded as sum of models. |
100 | 100 | * @param int $currentPage The current page number if it is integer begun with 0. |
101 | 101 | * @return $this |
@@ -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 | { |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | /** |
221 | 221 | * Add a child. |
222 | 222 | * @param static $child |
223 | - * @return boolean |
|
223 | + * @return string|false |
|
224 | 224 | */ |
225 | 225 | public function addChild($child) |
226 | 226 | { |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | /** |
231 | 231 | * Event triggered before deleting itself. |
232 | 232 | * @param ModelEvent $event |
233 | - * @return boolean true if parentAttribute not specified. |
|
233 | + * @return boolean|null true if parentAttribute not specified. |
|
234 | 234 | * @throws IntegrityException throw if $throwRestrictException is true when $onDeleteType is on restrict. |
235 | 235 | */ |
236 | 236 | public function onDeleteChildren($event) |
@@ -262,7 +262,7 @@ discard block |
||
262 | 262 | /** |
263 | 263 | * Event triggered before updating itself. |
264 | 264 | * @param ModelEvent $event |
265 | - * @return boolean true if parentAttribute not specified. |
|
265 | + * @return boolean|null true if parentAttribute not specified. |
|
266 | 266 | * @throws IntegrityException throw if $throwRestrictException is true when $onUpdateType is on restrict. |
267 | 267 | */ |
268 | 268 | public function onUpdateChildren($event) |
@@ -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 | { |
@@ -160,7 +160,7 @@ |
||
160 | 160 | |
161 | 161 | /** |
162 | 162 | * |
163 | - * @param type $class |
|
163 | + * @param string $class |
|
164 | 164 | * @param type $config |
165 | 165 | * @return type |
166 | 166 | * @todo 区分字符串和类的实例两种情况。 |