Inheritance   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 50%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getType() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Cycle\Annotated\Annotation;
6
7
use Doctrine\Common\Annotations\Annotation\Required;
8
9
abstract class Inheritance
10
{
11 144
    public function __construct(
12
        /** @Required() */
13
        private string $type
14
    ) {
15 144
    }
16
17
    public function getType(): string
18
    {
19
        return $this->type;
20
    }
21
}
22