Issues (92)

src/method/Search/MethodBulkSearch.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace hiqdev\billing\hiapi\method\Search;
4
5
use hiapi\Core\Endpoint\BuilderFactory;
6
use hiapi\Core\Endpoint\Endpoint;
7
use hiapi\Core\Endpoint\EndpointBuilder;
8
use hiapi\endpoints\Module\Multitenant\Tenant;
9
use hiqdev\php\billing\method\Method;
0 ignored issues
show
The type hiqdev\php\billing\method\Method was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
10
11
12
final class MethodBulkSearch
13
{
14
    public function __invoke(BuilderFactory $build): Endpoint
15
    {
16
        return $this->create($build)->build();
17
    }
18
19
    public function create(BuilderFactory $build): EndpointBuilder
20
    {
21
        return $build->endpoint(self::class)
22
                     ->exportTo(Tenant::ALL)
23
                     ->take(MethodSearchCommand::class)
24
                     ->checkPermission('method.read')
25
                     ->middlewares(
26
                         $build->call(MethodBulkSearchAction::class)
27
                     )
28
                     ->return($build->many(Method::class));
29
    }
30
}
31