Passed
Push — 3.x ( 080893...4e5cb3 )
by Aleksei
09:48
created

SingleTable   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getValue() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Cycle\Annotated\Annotation\Inheritance;
6
7
use Cycle\Annotated\Annotation\Inheritance;
8
use Doctrine\Common\Annotations\Annotation\NamedArgumentConstructor;
9
10
/**
11
 * @Annotation
12
 * @NamedArgumentConstructor
13
 * @Target("CLASS")
14
 */
15
#[\Attribute(\Attribute::TARGET_CLASS), NamedArgumentConstructor]
16
class SingleTable extends Inheritance
17
{
18 36
    public function __construct(
19
        private ?string $value = null
20
    ) {
21 36
        parent::__construct('single');
22 36
    }
23
24 36
    public function getValue(): ?string
25
    {
26 36
        return $this->value;
27
    }
28
}
29