AsCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 11
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace pjpawel\LightApi\Command;
4
5
use Attribute;
6
7
#[Attribute(Attribute::TARGET_CLASS)]
8
class AsCommand
9
{
10
11
    public string $name;
12
    public bool $prod;
13
14
    public function __construct(string $name, bool $prod = true)
15
    {
16
        $this->name = $name;
17
        $this->prod = $prod;
18
    }
19
20
}