Completed
Pull Request — develop (#79)
by
unknown
44:24 queued 32:59
created

AbstractFileParser::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Noodlehaus\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