Skip to content

Commit 3efdb17

Browse files
committed
Use this return type for builders @methods
1 parent 0550840 commit 3efdb17

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

src/NextIdeHelper/Extension.php

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,27 @@ public function execute(Model $model): void
2222
Collection::make([
2323
'bool insertModels(array $values)',
2424
'int upsertModels(array $values, string|array $uniqueBy, ?array $update = null)',
25-
"{$builderClass} scope(\\Illuminate\\Database\\Eloquent\\Scope \$scope)",
26-
"{$builderClass} scoped(\\Closure \$callable)",
27-
"{$builderClass} preventInvalidDirection(string \$direction)",
28-
"{$builderClass} withAggregateFunction(array \$relations, \\Soyhuce\\EloquentExtended\\Aggregates\\Contracts\\AggregateFunction \$aggregateFunction)",
29-
"{$builderClass} withAnyExists(array \$relations, string \$alias = 'related_exists')",
30-
"{$builderClass} withImplode(array|string \$relations, string \$column, string \$glue, ?string \$orderBy = null, string \$direction = 'asc')",
31-
"{$builderClass} orderByNullsLast(string \$column, string \$direction = 'asc')",
32-
"{$builderClass} orderByRawNullsLast(string \$sql)",
33-
"{$builderClass} orderByNullsFirst(string \$column, string \$direction = 'asc')",
34-
"{$builderClass} orderByRawNullsFirst(string \$sql)",
35-
"{$builderClass} orderByAggregate(string \$relationName, string \$column, string \$direction = 'asc', ?string \$function = null, ?\\Closure \$constraints = null)",
36-
"{$builderClass} orderByExists(string \$relation, ?\\Closure \$constraints = null, string \$direction = 'asc')",
37-
"{$builderClass} orderByExistsDesc(string \$relation, ?\\Closure \$constraints = null)",
38-
"{$builderClass} orderByCount(string \$relation, ?\\Closure \$constraints = null, string \$direction = 'asc')",
39-
"{$builderClass} orderByCountDesc(string \$relation, ?\\Closure \$constraints = null)",
40-
"{$builderClass} orderBySum(string \$relation, string \$column, ?\\Closure \$constraints = null, string \$direction = 'asc')",
41-
"{$builderClass} orderBySumDesc(string \$relation, string \$column, ?\\Closure \$constraints = null)",
42-
"{$builderClass} orderByMin(string \$relation, string \$column, ?\\Closure \$constraints = null, string \$direction = 'asc')",
43-
"{$builderClass} orderByMinDesc(string \$relation, string \$column, ?\\Closure \$constraints = null)",
44-
"{$builderClass} orderByMax(string \$relation, string \$column, ?\\Closure \$constraints = null, string \$direction = 'asc')",
45-
"{$builderClass} orderByMaxDesc(string \$relation, string \$column, ?\\Closure \$constraints = null)",
25+
'$this scope(\\Illuminate\\Database\\Eloquent\\Scope $scope)',
26+
'$this scoped(\\Closure $callable)',
27+
'$this preventInvalidDirection(string $direction)',
28+
'$this withAggregateFunction(array $relations, \\Soyhuce\\EloquentExtended\\Aggregates\\Contracts\\AggregateFunction $aggregateFunction)',
29+
'$this withAnyExists(array $relations, string $alias = \'related_exists\')',
30+
'$this withImplode(array|string $relations, string $column, string $glue, ?string $orderBy = null, string $direction = \'asc\')',
31+
'$this orderByNullsLast(string $column, string $direction = \'asc\')',
32+
'$this orderByRawNullsLast(string $sql)',
33+
'$this orderByNullsFirst(string $column, string $direction = \'asc\')',
34+
'$this orderByRawNullsFirst(string $sql)',
35+
'$this orderByAggregate(string $relationName, string $column, string $direction = \'asc\', ?string $function = null, ?\\Closure $constraints = null)',
36+
'$this orderByExists(string $relation, ?\\Closure $constraints = null, string $direction = \'asc\')',
37+
'$this orderByExistsDesc(string $relation, ?\\Closure $constraints = null)',
38+
'$this orderByCount(string $relation, ?\\Closure $constraints = null, string $direction = \'asc\')',
39+
'$this orderByCountDesc(string $relation, ?\\Closure $constraints = null)',
40+
'$this orderBySum(string $relation, string $column, ?\\Closure $constraints = null, string $direction = \'asc\')',
41+
'$this orderBySumDesc(string $relation, string $column, ?\\Closure $constraints = null)',
42+
'$this orderByMin(string $relation, string $column, ?\\Closure $constraints = null, string $direction = \'asc\')',
43+
'$this orderByMinDesc(string $relation, string $column, ?\\Closure $constraints = null)',
44+
'$this orderByMax(string $relation, string $column, ?\\Closure $constraints = null, string $direction = \'asc\')',
45+
'$this orderByMaxDesc(string $relation, string $column, ?\\Closure $constraints = null)',
4646
"{$modelClass}|null random()",
4747
])
4848
->when(

0 commit comments

Comments
 (0)