Test Failed
Pull Request — master (#872)
by Maxim
10:54 queued 03:52
created

CommandDefinition   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 12 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Spiral\Console\Configurator;
6
7
use Symfony\Component\Console\Input\InputArgument;
8
use Symfony\Component\Console\Input\InputOption;
9
10
/**
11
 * @internal
12
 */
13
final class CommandDefinition
14
{
15
    public function __construct(
16
        /** @var non-empty-string */
17
        public readonly string $name,
18
        /** @var InputArgument[] */
19
        public readonly array $arguments = [],
20
        /** @var InputOption[] */
21
        public readonly array $options = [],
22
        /** @var ?non-empty-string */
23
        public readonly ?string $description = null,
24
        /** @var ?non-empty-string */
25
        public readonly ?string $help = null
26
    ) {
27
    }
28
}
29