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

AbstractFileParser::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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