Passed
Push — improve-list-modules-output ( e63970 )
by Chema
04:12
created

AppModule   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
dl 0
loc 46
ccs 12
cts 12
cp 1
rs 10
c 1
b 0
f 0
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A factoryClass() 0 3 1
A dependencyProviderClass() 0 3 1
A facadeClass() 0 3 1
A __construct() 0 7 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 7
    public function __construct(
10
        private string $moduleName,
11
        private string $facadeClass,
12
        private ?string $factoryClass = null,
13
        private ?string $configClass = null,
14
        private ?string $dependencyProviderClass = null,
15
    ) {
16 7
    }
17
18 5
    public function moduleName(): string
19
    {
20 5
        return $this->moduleName;
21
    }
22
23
    /**
24
     * @return class-string
25
     */
26 7
    public function facadeClass(): string
27
    {
28 7
        return $this->facadeClass;
29
    }
30
31
    /**
32
     * @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...
33
     */
34 5
    public function factoryClass(): ?string
35
    {
36 5
        return $this->factoryClass;
37
    }
38
39
    /**
40
     * @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...
41
     */
42 5
    public function configClass(): ?string
43
    {
44 5
        return $this->configClass;
45
    }
46
47
    /**
48
     * @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...
49
     */
50 5
    public function dependencyProviderClass(): ?string
51
    {
52 5
        return $this->dependencyProviderClass;
53
    }
54
}
55