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

AppModule::dependencyProviderClass()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
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