@@ -11,7 +11,6 @@ |
||
| 11 | 11 | use paulzi\materializedpath\tests\models\AttributeModeNode; |
| 12 | 12 | use paulzi\materializedpath\tests\models\MultipleTreeNode; |
| 13 | 13 | use paulzi\materializedpath\tests\models\Node; |
| 14 | -use Yii; |
|
| 15 | 14 | |
| 16 | 15 | /** |
| 17 | 16 | * @author PaulZi <[email protected]> |
@@ -343,7 +343,7 @@ discard block |
||
| 343 | 343 | |
| 344 | 344 | /** |
| 345 | 345 | * @param bool $asArray = false |
| 346 | - * @return null|string|array |
|
| 346 | + * @return string |
|
| 347 | 347 | */ |
| 348 | 348 | public function getParentPath($asArray = false) |
| 349 | 349 | { |
@@ -354,7 +354,7 @@ discard block |
||
| 354 | 354 | * Populate children relations for self and all descendants |
| 355 | 355 | * |
| 356 | 356 | * @param int $depth = null |
| 357 | - * @return static |
|
| 357 | + * @return ActiveRecord |
|
| 358 | 358 | */ |
| 359 | 359 | public function populateTree($depth = null) |
| 360 | 360 | { |
@@ -892,7 +892,7 @@ discard block |
||
| 892 | 892 | } |
| 893 | 893 | |
| 894 | 894 | /** |
| 895 | - * @param array $items |
|
| 895 | + * @param string[] $items |
|
| 896 | 896 | * @return string |
| 897 | 897 | */ |
| 898 | 898 | protected function concatExpression($items) |
@@ -903,6 +903,9 @@ discard block |
||
| 903 | 903 | return 'CONCAT(' . implode(',', $items) . ')'; |
| 904 | 904 | } |
| 905 | 905 | |
| 906 | + /** |
|
| 907 | + * @param string $from |
|
| 908 | + */ |
|
| 906 | 909 | protected function substringExpression($string, $from, $length) |
| 907 | 910 | { |
| 908 | 911 | if ($this->owner->getDb()->driverName === 'sqlite') { |