Feature   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setFeature() 0 4 1
A isMet() 0 4 1
1
<?php
2
/**
3
 * @author stev leibelt <[email protected]>
4
 * @since 2013-06-26 
5
 */
6
7
namespace Example\Table\Items;
8
9
use Net\Bazzline\Component\Requirement\AbstractItem;
10
11
/**
12
 * Class Feature
13
 *
14
 * @package Example\Table\Items
15
 * @author stev leibelt <[email protected]>
16
 * @since 2013-06-26
17
 */
18
class Feature extends AbstractItem
19
{
20
    /**
21
     * @var string
22
     * @author stev leibelt <[email protected]>
23
     * @since 2013-06-26
24
     */
25
    protected $feature;
26
27
    /**
28
     * @var string
29
     * @author stev leibelt <[email protected]>
30
     * @since 2013-06-26
31
     */
32
    protected $expectedFeature;
33
34
    /**
35
     * @param string $feature - the feature you want to met for
36
     * @author stev leibelt <[email protected]>
37
     * @since 2013-06-26
38
     */
39
    public function setFeature($feature)
40
    {
41
        $this->feature = (string) $feature;
42
    }
43
44
    /**
45
     * {$inheritdoc}
46
     */
47
    public function isMet()
48
    {
49
        return (strtolower($this->feature) == $this->expectedFeature);
50
    }
51
}