Completed
Push — master ( bff5f7...caa188 )
by Lena
12:09
created

CoreFeature::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 2
1
<?php
2
3
namespace QueerCodingGirl\Rollout\Feature;
4
5
/**
6
 * Class CoreFeature
7
 * @package QueerCodingGirl\Rollout\Feature
8
 */
9
class CoreFeature extends FeatureAbstract
10
{
11
12
    /**
13
     * @param string $name A unique name for this feature.
14
     * @param string|null $configString For the format definition see RolloutableInterface::configureByConfigString()
15
     */
16
    public function __construct($name, $configString = null)
17
    {
18
        $this->name = $name;
19
        $this->clearConfig();
20
        if (null !== $configString) {
21
            $this->configureByConfigString($configString);
22
        }
23
    }
24
}