Completed
Pull Request — master (#91)
by
unknown
04:12
created

AbstractFileParser   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 22
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace mhndev\config\FileParser;
4
5
/**
6
 * Abstract file parser
7
 *
8
 * @package    Config
9
 * @author     Jesus A. Domingo <[email protected]>
10
 * @author     Hassan Khan <[email protected]>
11
 * @link       https://github.com/noodlehaus/config
12
 * @license    MIT
13
 */
14
abstract class AbstractFileParser implements FileParserInterface
15
{
16
17
    /**
18
     * Path to the config file
19
     *
20
     * @var string
21
     */
22
    protected $path;
23
24
    /**
25
     * Sets the path to the config file
26
     *
27
     * @param string $path
28
     *
29
     * @codeCoverageIgnore
30
     */
31
    public function __construct($path)
32
    {
33
        $this->path = $path;
34
    }
35
}
36