@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | /** |
325 | 325 | * Get the boundaries. |
326 | 326 | * |
327 | - * @return array |
|
327 | + * @return integer[] |
|
328 | 328 | */ |
329 | 329 | public function getBounds() |
330 | 330 | { |
@@ -755,7 +755,7 @@ discard block |
||
755 | 755 | * |
756 | 756 | * @param \Arcanedev\LaravelNestedSet\Contracts\Nodeable $parent |
757 | 757 | * |
758 | - * @return \Arcanedev\LaravelNestedSet\Contracts\Nodeable |
|
758 | + * @return NodeTrait |
|
759 | 759 | */ |
760 | 760 | public function prependToNode(Nodeable $parent) |
761 | 761 | { |
@@ -768,7 +768,7 @@ discard block |
||
768 | 768 | * @param \Arcanedev\LaravelNestedSet\Contracts\Nodeable $parent |
769 | 769 | * @param bool $prepend |
770 | 770 | * |
771 | - * @return \Arcanedev\LaravelNestedSet\Contracts\Nodeable |
|
771 | + * @return NodeTrait |
|
772 | 772 | */ |
773 | 773 | public function appendOrPrependTo(Nodeable $parent, $prepend = false) |
774 | 774 | { |
@@ -785,7 +785,7 @@ discard block |
||
785 | 785 | * |
786 | 786 | * @param \Arcanedev\LaravelNestedSet\Contracts\Nodeable $node |
787 | 787 | * |
788 | - * @return \Arcanedev\LaravelNestedSet\Contracts\Nodeable |
|
788 | + * @return NodeTrait |
|
789 | 789 | */ |
790 | 790 | public function afterNode(Nodeable $node) |
791 | 791 | { |
@@ -797,7 +797,7 @@ discard block |
||
797 | 797 | * |
798 | 798 | * @param \Arcanedev\LaravelNestedSet\Contracts\Nodeable $node |
799 | 799 | * |
800 | - * @return \Arcanedev\LaravelNestedSet\Contracts\Nodeable |
|
800 | + * @return NodeTrait |
|
801 | 801 | */ |
802 | 802 | public function beforeNode(Nodeable $node) |
803 | 803 | { |
@@ -810,7 +810,7 @@ discard block |
||
810 | 810 | * @param \Arcanedev\LaravelNestedSet\Contracts\Nodeable $node |
811 | 811 | * @param bool $after |
812 | 812 | * |
813 | - * @return \Arcanedev\LaravelNestedSet\Contracts\Nodeable |
|
813 | + * @return NodeTrait |
|
814 | 814 | */ |
815 | 815 | public function beforeOrAfterNode(Nodeable $node, $after = false) |
816 | 816 | { |
@@ -915,7 +915,7 @@ discard block |
||
915 | 915 | * |
916 | 916 | * @param int $position |
917 | 917 | * |
918 | - * @return int |
|
918 | + * @return boolean |
|
919 | 919 | */ |
920 | 920 | protected function moveNode($position) |
921 | 921 | { |
@@ -1041,7 +1041,7 @@ discard block |
||
1041 | 1041 | /** |
1042 | 1042 | * @param array $attributes |
1043 | 1043 | * |
1044 | - * @return self |
|
1044 | + * @return Eloquent\QueryBuilder |
|
1045 | 1045 | */ |
1046 | 1046 | public static function scoped(array $attributes) |
1047 | 1047 | { |
@@ -1170,7 +1170,7 @@ discard block |
||
1170 | 1170 | * |
1171 | 1171 | * @param \Arcanedev\LaravelNestedSet\Contracts\Nodeable $node |
1172 | 1172 | * |
1173 | - * @return self |
|
1173 | + * @return Nodeable |
|
1174 | 1174 | * |
1175 | 1175 | * @throws \LogicException |
1176 | 1176 | */ |
@@ -45,7 +45,7 @@ |
||
45 | 45 | * DescendantsRelation constructor. |
46 | 46 | * |
47 | 47 | * @param \Arcanedev\LaravelNestedSet\Eloquent\QueryBuilder $builder |
48 | - * @param \Illuminate\Database\Eloquent\Model|NodeTrait $model |
|
48 | + * @param Model $model |
|
49 | 49 | */ |
50 | 50 | public function __construct(QueryBuilder $builder, Model $model) |
51 | 51 | { |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php namespace Arcanedev\LaravelNestedSet\Eloquent; |
2 | 2 | |
3 | -use Arcanedev\LaravelNestedSet\Utilities\NestedSet; |
|
4 | 3 | use Arcanedev\LaravelNestedSet\NodeTrait; |
4 | +use Arcanedev\LaravelNestedSet\Utilities\NestedSet; |
|
5 | 5 | use Illuminate\Database\Eloquent\Builder as EloquentBuilder; |
6 | 6 | use Illuminate\Database\Eloquent\Collection as EloquentCollection; |
7 | 7 | use Illuminate\Database\Eloquent\Model; |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | /** |
129 | 129 | * Get ancestors of specified node. |
130 | 130 | * |
131 | - * @param mixed $id |
|
131 | + * @param \Arcanedev\LaravelNestedSet\NodeTrait $id |
|
132 | 132 | * @param array $columns |
133 | 133 | * |
134 | 134 | * @return self|\Illuminate\Database\Eloquent\Collection |
@@ -355,7 +355,7 @@ discard block |
||
355 | 355 | /** |
356 | 356 | * Get wrapped `lft` and `rgt` column names. |
357 | 357 | * |
358 | - * @return array |
|
358 | + * @return string[] |
|
359 | 359 | */ |
360 | 360 | protected function wrappedColumns() |
361 | 361 | { |
@@ -521,7 +521,7 @@ discard block |
||
521 | 521 | * @param string $col |
522 | 522 | * @param array $params |
523 | 523 | * |
524 | - * @return string |
|
524 | + * @return Expression |
|
525 | 525 | */ |
526 | 526 | protected function columnPatch($col, array $params) |
527 | 527 | { |