AsCommand::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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