Passed
Push — develop ( 333d24...82ab60 )
by Mikaël
09:54
created

PhpReservedKeyword   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getDefaultConfigurationPath() 0 3 1
A instance() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace WsdlToPhp\PackageGenerator\ConfigurationReader;
6
7
final class PhpReservedKeyword extends AbstractReservedWord
8
{
9 356
    public static function getDefaultConfigurationPath(): string
10
    {
11 356
        return __DIR__.'/../resources/config/php_reserved_keywords.yml';
12
    }
13
14 490
    public static function instance(?string $filename = null): self
15
    {
16 490
        return parent::instance($filename);
0 ignored issues
show
Bug Best Practice introduced by
The expression return parent::instance($filename) returns the type WsdlToPhp\PackageGenerat...ader\AbstractYamlReader which includes types incompatible with the type-hinted return WsdlToPhp\PackageGenerat...ader\PhpReservedKeyword.
Loading history...
17
    }
18
}
19