GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

LaravelCommandBusHandlerResolver::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
3
namespace SmoothPhp\LaravelAdapter\CommandBus;
4
5
use Illuminate\Contracts\Foundation\Application;
6
use SmoothPhp\Contracts\CommandBus\CommandHandlerResolver;
7
8
/**
9
 * Class LaravelCommandBusHandlerResolver
10
 * @package SmoothPhp\LaravelAdapter\CommandBus
11
 * @author Simon Bennett <[email protected]>
12
 */
13
final class LaravelCommandBusHandlerResolver implements CommandHandlerResolver
14
{
15
    /** @var Application */
16
    private $application;
17
18
    /**
19
     * LaravelCommandBusHandlerResolver constructor.
20
     * @param Application $application
21
     */
22
    public function __construct(Application $application)
23
    {
24
        $this->application = $application;
25
    }
26
27
    /**
28
     * @param string $className The command handler ID
29
     * @return mixed                The command handler
30
     */
31
    public function make($className)
32
    {
33
        return $this->application->make($className);
34
    }
35
}