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

AsCommand::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

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