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

ServiceReservedMethod   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 3
c 1
b 0
f 1
lcom 0
cbo 1
dl 0
loc 19
ccs 4
cts 4
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A instance() 0 4 2
A getDefaultConfigurationPath() 0 4 1
1
<?php
2
3
namespace WsdlToPhp\PackageGenerator\ConfigurationReader;
4
5
class ServiceReservedMethod extends AbstractReservedWord
6
{
7
    /**
8
     * @throws \InvalidArgumentException
9
     * @param string options's file to parse
10
     * @return ServiceReservedMethod
11
     */
12 712
    public static function instance($filename = null)
13
    {
14 712
        return parent::instance(empty($filename) ? self::getDefaultConfigurationPath() : $filename);
15
    }
16
    /**
17
     * @return string
18
     */
19 504
    public static function getDefaultConfigurationPath()
20
    {
21 504
        return dirname(__FILE__) . '/../resources/config/service_reserved_keywords.yml';
22
    }
23
}
24