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

CoreFeature   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 16
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 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
}