Completed
Push — develop ( 0869de...14a867 )
by Mikaël
31:40
created

PhpReservedKeyword::instance()   A

Complexity

Conditions 2
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 2
eloc 2
nc 1
nop 1
crap 2
1
<?php
2
3
namespace WsdlToPhp\PackageGenerator\ConfigurationReader;
4
5
class PhpReservedKeyword extends AbstractReservedWord
6
{
7
    /**
8
     * @throws \InvalidArgumentException
9
     * @param string options's file to parse
10
     * @return PhpReservedKeyword
11
     */
12 716
    public static function instance($filename = null)
13
    {
14 716
        return parent::instance(empty($filename) ? self::getDefaultConfigurationPath() : $filename);
15
    }
16
    /**
17
     * @return string
18
     */
19 500
    public static function getDefaultConfigurationPath()
20
    {
21 500
        return dirname(__FILE__) . '/../resources/config/php_reserved_keywords.yml';
22
    }
23
}
24