Passed
Pull Request — master (#8)
by
unknown
03:37 queued 48s
created

AttributesResolver   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 5
c 0
b 0
f 0
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 10 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Umbrellio\Jaravel\Configurations\Console;
6
7
use Symfony\Component\Console\Input\InputInterface;
8
use Symfony\Component\Console\Output\OutputInterface;
9
10
class AttributesResolver
11
{
12
    public function __invoke(
13
        string $command,
14
        int $exitCode,
15
        ?InputInterface $input = null,
16
        ?OutputInterface $output = null
17
    ) {
18
        return [
19
            'type' => 'console',
20
            'console_command' => $command,
21
            'console_exit_code' => $exitCode,
22
        ];
23
    }
24
}
25