Passed
Push — change-design-list-modules-sim... ( 1434af )
by Jesús
04:15
created

AppModule   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 52
ccs 14
cts 14
cp 1
rs 10
wmc 7

7 Methods

Rating   Name   Duplication   Size   Complexity  
A factoryClass() 0 3 1
A dependencyProviderClass() 0 3 1
A facadeClass() 0 3 1
A __construct() 0 8 1
A fullModuleName() 0 3 1
A moduleName() 0 3 1
A configClass() 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 8
    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 8
    }
18
19 3
    public function fullModuleName(): string
20
    {
21 3
        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 8
    public function facadeClass(): string
33
    {
34 8
        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 6
    public function factoryClass(): ?string
41
    {
42 6
        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 6
    public function configClass(): ?string
49
    {
50 6
        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 6
    public function dependencyProviderClass(): ?string
57
    {
58 6
        return $this->dependencyProviderClass;
59
    }
60
}
61