Passed
Push — feat/use-provider ( 6f868a )
by Chema
04:35
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
    public function __construct(
10
        private readonly string $fullModuleName,
11
        private readonly string $moduleName,
12
        private readonly string $facadeClass,
13
        private readonly ?string $factoryClass = null,
14
        private readonly ?string $configClass = null,
15
        private readonly ?string $providerClass = null,
16
    ) {
17
    }
18
19
    public function fullModuleName(): string
20
    {
21
        return $this->fullModuleName;
22
    }
23
24
    public function moduleName(): string
25
    {
26
        return $this->moduleName;
27
    }
28
29
    /**
30
     * @return class-string
31
     */
32
    public function facadeClass(): string
33
    {
34
        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
    public function factoryClass(): ?string
41
    {
42
        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
    public function configClass(): ?string
49
    {
50
        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
    public function providerClass(): ?string
57
    {
58
        return $this->providerClass;
59
    }
60
}
61