@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | /** |
| 223 | 223 | * Add a child. |
| 224 | 224 | * @param static $child |
| 225 | - * @return boolean |
|
| 225 | + * @return false|string |
|
| 226 | 226 | */ |
| 227 | 227 | public function addChild($child) |
| 228 | 228 | { |
@@ -232,7 +232,7 @@ discard block |
||
| 232 | 232 | /** |
| 233 | 233 | * Event triggered before deleting itself. |
| 234 | 234 | * @param ModelEvent $event |
| 235 | - * @return boolean true if parentAttribute not specified. |
|
| 235 | + * @return boolean|null true if parentAttribute not specified. |
|
| 236 | 236 | * @throws IntegrityException throw if $throwRestrictException is true when $onDeleteType is on restrict. |
| 237 | 237 | */ |
| 238 | 238 | public function onDeleteChildren($event) |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | /** |
| 266 | 266 | * Event triggered before updating itself. |
| 267 | 267 | * @param ModelEvent $event |
| 268 | - * @return boolean true if parentAttribute not specified. |
|
| 268 | + * @return boolean|null true if parentAttribute not specified. |
|
| 269 | 269 | * @throws IntegrityException throw if $throwRestrictException is true when $onUpdateType is on restrict. |
| 270 | 270 | */ |
| 271 | 271 | public function onUpdateChildren($event) |