Parser   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 4
c 0
b 0
f 0
dl 0
loc 15
ccs 6
cts 6
cp 1
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A objectProperty() 0 3 1
A objectClass() 0 3 1
A getParserByName() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace WsdlToPhp\PackageGenerator\Container;
6
7
use WsdlToPhp\PackageGenerator\Parser\AbstractParser;
8
9
final class Parser extends AbstractObjectContainer
10
{
11 66
    public function getParserByName(string $name): ?AbstractParser
12
    {
13 66
        return $this->get($name);
14
    }
15
16 462
    protected function objectClass(): string
17
    {
18 462
        return AbstractParser::class;
19
    }
20
21 460
    protected function objectProperty(): string
22
    {
23 460
        return self::PROPERTY_NAME;
24
    }
25
}
26