@@ -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 | { |