@@ -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]> |
@@ -309,7 +309,7 @@ discard block |
||
| 309 | 309 | |
| 310 | 310 | /** |
| 311 | 311 | * @param bool $asArray = false |
| 312 | - * @return null|string|array |
|
| 312 | + * @return string |
|
| 313 | 313 | */ |
| 314 | 314 | public function getParentPath($asArray = false) |
| 315 | 315 | { |
@@ -320,7 +320,7 @@ discard block |
||
| 320 | 320 | * Populate children relations for self and all descendants |
| 321 | 321 | * |
| 322 | 322 | * @param int $depth = null |
| 323 | - * @return static |
|
| 323 | + * @return ActiveRecord |
|
| 324 | 324 | */ |
| 325 | 325 | public function populateTree($depth = null) |
| 326 | 326 | { |
@@ -854,7 +854,7 @@ discard block |
||
| 854 | 854 | } |
| 855 | 855 | |
| 856 | 856 | /** |
| 857 | - * @param array $items |
|
| 857 | + * @param string[] $items |
|
| 858 | 858 | * @return string |
| 859 | 859 | */ |
| 860 | 860 | protected function concatExpression($items) |
@@ -865,6 +865,11 @@ discard block |
||
| 865 | 865 | return 'CONCAT(' . implode(',', $items) . ')'; |
| 866 | 866 | } |
| 867 | 867 | |
| 868 | + /** |
|
| 869 | + * @param string $string |
|
| 870 | + * @param string $from |
|
| 871 | + * @param string $length |
|
| 872 | + */ |
|
| 868 | 873 | protected function substringExpression($string, $from, $length) |
| 869 | 874 | { |
| 870 | 875 | if ($this->owner->getDb()->driverName === 'sqlite') { |