@@ -2,11 +2,11 @@ |
||
2 | 2 | |
3 | 3 | namespace Orkhanahmadov\EloquentRepository\Console; |
4 | 4 | |
5 | +use Illuminate\Console\GeneratorCommand; |
|
6 | +use Illuminate\Contracts\Filesystem\FileNotFoundException; |
|
5 | 7 | use Illuminate\Support\Str; |
6 | 8 | use InvalidArgumentException; |
7 | -use Illuminate\Console\GeneratorCommand; |
|
8 | 9 | use Symfony\Component\Console\Input\InputOption; |
9 | -use Illuminate\Contracts\Filesystem\FileNotFoundException; |
|
10 | 10 | |
11 | 11 | class RepositoryMakeCommand extends GeneratorCommand |
12 | 12 | { |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | * |
109 | 109 | * @param int $perPage |
110 | 110 | * |
111 | - * @return Builder[]|Collection|mixed |
|
111 | + * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator |
|
112 | 112 | */ |
113 | 113 | public function paginate(int $perPage) |
114 | 114 | { |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | * |
265 | 265 | * @param Model $model |
266 | 266 | * |
267 | - * @return bool|mixed|null |
|
267 | + * @return null|boolean |
|
268 | 268 | * @throws Exception |
269 | 269 | */ |
270 | 270 | public function delete($model) |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | * |
282 | 282 | * @param int|string $modelId |
283 | 283 | * |
284 | - * @return bool|mixed|null |
|
284 | + * @return null|boolean |
|
285 | 285 | * @throws Exception |
286 | 286 | */ |
287 | 287 | public function findAndDelete($modelId) |
@@ -326,7 +326,7 @@ discard block |
||
326 | 326 | * |
327 | 327 | * @param int|string $modelId |
328 | 328 | * |
329 | - * @return Builder|Builder[]|Collection|Model|null |
|
329 | + * @return Model |
|
330 | 330 | */ |
331 | 331 | public function findFromTrashed($modelId) |
332 | 332 | { |
@@ -2,18 +2,18 @@ |
||
2 | 2 | |
3 | 3 | namespace Orkhanahmadov\EloquentRepository; |
4 | 4 | |
5 | -use Exception; |
|
6 | 5 | use BadMethodCallException; |
7 | -use Illuminate\Support\Arr; |
|
8 | -use Illuminate\Database\Eloquent\Model; |
|
6 | +use Exception; |
|
7 | +use Illuminate\Contracts\Cache\Factory as Cache; |
|
8 | +use Illuminate\Contracts\Container\BindingResolutionException; |
|
9 | 9 | use Illuminate\Database\Eloquent\Builder; |
10 | 10 | use Illuminate\Database\Eloquent\Collection; |
11 | -use Illuminate\Contracts\Cache\Factory as Cache; |
|
11 | +use Illuminate\Database\Eloquent\Model; |
|
12 | 12 | use Illuminate\Database\Eloquent\ModelNotFoundException; |
13 | -use Orkhanahmadov\EloquentRepository\Repository\Criteria; |
|
14 | -use Illuminate\Contracts\Container\BindingResolutionException; |
|
13 | +use Illuminate\Support\Arr; |
|
15 | 14 | use Orkhanahmadov\EloquentRepository\Repository\Contracts\Cachable; |
16 | 15 | use Orkhanahmadov\EloquentRepository\Repository\Contracts\Repository; |
16 | +use Orkhanahmadov\EloquentRepository\Repository\Criteria; |
|
17 | 17 | |
18 | 18 | abstract class EloquentRepository implements Repository |
19 | 19 | { |