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

Argument   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 2
dl 0
loc 13
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_PROPERTY), NamedArgumentConstructor]
10
final class Argument
11
{
12
    /**
13
     * @param ?non-empty-string $name Argument name. Property name by default
0 ignored issues
show
Documentation Bug introduced by
The doc comment ?non-empty-string at position 0 could not be parsed: Unknown type name 'non-empty-string' at position 0 in ?non-empty-string.
Loading history...
14
     * @param ?non-empty-string $description Argument description
15
     * @param \Closure|array $suggestedValues Argument suggested values
16
     */
17
    public function __construct(
18
        public readonly ?string $name = null,
19
        public readonly ?string $description = null,
20
        public readonly \Closure|array $suggestedValues = [],
21
    ) {
22
    }
23
}
24