Passed
Push — master ( 54c9d7...129e56 )
by Chema
01:29 queued 13s
created

DocBlockResolvable::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Gacela\Framework\DocBlockResolver;
6
7
final class DocBlockResolvable
8
{
9
    /** @var class-string */
1 ignored issue
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...
10
    private string $className;
11
12
    private string $resolvableType;
13
14
    /**
15
     * @param class-string $className
1 ignored issue
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...
16
     */
17 11
    public function __construct(string $className, string $resolvableType)
18
    {
19 11
        $this->resolvableType = $resolvableType;
20 11
        $this->className = $className;
21
    }
22
23
    /**
24
     * @return class-string
1 ignored issue
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...
25
     */
26 11
    public function className(): string
27
    {
28 11
        return $this->className;
29
    }
30
31 11
    public function resolvableType(): string
32
    {
33 11
        return $this->resolvableType;
34
    }
35
}
36