Passed
Push — add-with-all-to-modules-list ( 82b81d...0edb38 )
by Chema
03:40
created

AppModule::fromClass()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 6
nc 1
nop 1
dl 0
loc 9
ccs 7
cts 7
cp 1
crap 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A AppModule::fullModuleName() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Gacela\Console\Domain\AllAppModules;
6
7
final class AppModule
8
{
9 9
    public function __construct(
10
        private string $fullModuleName,
11
        private string $moduleName,
12
        private string $facadeClass,
13
        private ?string $factoryClass = null,
14
        private ?string $configClass = null,
15
        private ?string $dependencyProviderClass = null,
16
    ) {
17 9
    }
18
19 4
    public function fullModuleName(): string
20
    {
21 4
        return $this->fullModuleName;
22
    }
23
24 3
    public function moduleName(): string
25
    {
26 3
        return $this->moduleName;
27
    }
28
29
    /**
30
     * @return class-string
31
     */
32 9
    public function facadeClass(): string
33
    {
34 9
        return $this->facadeClass;
35
    }
36
37
    /**
38
     * @return ?class-string
0 ignored issues
show
Documentation Bug introduced by
The doc comment ?class-string at position 0 could not be parsed: Unknown type name 'class-string' at position 0 in ?class-string.
Loading history...
39
     */
40 7
    public function factoryClass(): ?string
41
    {
42 7
        return $this->factoryClass;
43
    }
44
45
    /**
46
     * @return ?class-string
0 ignored issues
show
Documentation Bug introduced by
The doc comment ?class-string at position 0 could not be parsed: Unknown type name 'class-string' at position 0 in ?class-string.
Loading history...
47
     */
48 7
    public function configClass(): ?string
49
    {
50 7
        return $this->configClass;
51
    }
52
53
    /**
54
     * @return ?class-string
0 ignored issues
show
Documentation Bug introduced by
The doc comment ?class-string at position 0 could not be parsed: Unknown type name 'class-string' at position 0 in ?class-string.
Loading history...
55
     */
56 7
    public function dependencyProviderClass(): ?string
57
    {
58 7
        return $this->dependencyProviderClass;
59
    }
60
}
61