CommandArguments::namespace()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
ccs 2
cts 2
cp 1
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Gacela\Console\Domain\CommandArguments;
6
7
final class CommandArguments
8
{
9 21
    public function __construct(
10
        private readonly string $namespace,
11
        private readonly string $directory,
12
    ) {
13 21
    }
14
15 18
    public function namespace(): string
16
    {
17 18
        return $this->namespace;
18
    }
19
20 18
    public function directory(): string
21
    {
22 18
        return $this->directory;
23
    }
24
25 10
    public function basename(): string
26
    {
27 10
        return basename($this->directory);
28
    }
29
}
30