Passed
Pull Request — master (#8)
by
unknown
02:54
created

AttributesResolver::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 4
c 0
b 0
f 0
dl 0
loc 10
rs 10
cc 1
nc 1
nop 4
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