OOPStructure   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A new() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Murtukov\PHPCodeGenerator;
6
7
abstract class OOPStructure extends DependencyAwareGenerator
8
{
9
    use ScopedContentTrait;
10
    use DocBlockTrait;
11
12
    public string $name;
13
14 6
    public function __construct(string $name)
15
    {
16 6
        $this->name = $name;
17 6
    }
18
19 5
    public static function new(string $name): self
20
    {
21 5
        return new static($name);
22
    }
23
}
24