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

AsCommand   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Spiral\Console\Attribute;
6
7
use Spiral\Attributes\NamedArgumentConstructor;
8
9
#[\Attribute(\Attribute::TARGET_CLASS), NamedArgumentConstructor]
10
final class AsCommand
11
{
12
    public function __construct(
13
        public readonly string $name,
14
        public readonly ?string $description = null,
15
        public readonly ?string $help = null
16
    ) {
17
    }
18
}
19