Completed
Pull Request — master (#111)
by Filip
07:42
created

AbstractStringParser::__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 1
1
<?php
2
3
namespace Noodlehaus\StringParser;
4
5
/**
6
 * Abstract string 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 AbstractStringParser implements StringParserInterface
15
{
16
17
    /**
18
     * String with configuration
19
     *
20
     * @var string
21
     */
22
    protected $configuration;
23
24
    /**
25
     * Sets the string with configuration
26
     *
27
     * @param string $configuration
28
     *
29
     * @codeCoverageIgnore
30
     */
31
    public function __construct($configuration)
32
    {
33
        $this->configuration = $configuration;
34
    }
35
}
36