Completed
Pull Request — master (#111)
by Filip
02:47
created

AbstractParser::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
3
namespace Noodlehaus\Parser;
4
5
/**
6
 * Abstract parser
7
 *
8
 * @package    Config
9
 * @author     Jesus A. Domingo <[email protected]>
10
 * @author     Hassan Khan <[email protected]>
11
 * @author     Filip Š <[email protected]>
12
 * @link       https://github.com/noodlehaus/config
13
 * @license    MIT
14
 */
15
abstract class AbstractParser implements ParserInterface
16
{
17
18
    /**
19
     * String with configuration
20
     *
21
     * @var string
22
     */
23
    protected $config;
24
25
    /**
26
     * Sets the string with configuration
27
     *
28
     * @param string $config
29
     * @param string $filename
30
     *
31
     * @codeCoverageIgnore
32
     */
33
    public function __construct($config, $filename = null)
0 ignored issues
show
Unused Code introduced by
The parameter $filename is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
34
    {
35
        $this->config = $config;
36
    }
37
}
38