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

PhpReservedKeyword::instance()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
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