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

CommandDefinition::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

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