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

Question   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 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 | \Attribute::TARGET_PROPERTY | \Attribute::IS_REPEATABLE)]
10
#[NamedArgumentConstructor]
11
final class Question
12
{
13
    public function __construct(
14
        public readonly string $question,
15
        public readonly ?string $argument = null
16
    ) {
17
    }
18
}
19