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

Question::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

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