Developer::setDeveloper()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
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 Developer
13
 *
14
 * @package Example\Table\Items
15
 * @author stev leibelt <[email protected]>
16
 * @since 2013-06-26
17
 */
18
class Developer extends AbstractItem
19
{
20
    /**
21
     * @var string
22
     * @author stev leibelt <[email protected]>
23
     * @since 2013-06-26
24
     */
25
    protected $developer;
26
27
    /**
28
     * @var string
29
     * @author stev leibelt <[email protected]>
30
     * @since 2013-06-26
31
     */
32
    protected $expectedDeveloper;
33
34
    /**
35
     * @param string $developer - the color you want to met for
36
     * @author stev leibelt <[email protected]>
37
     * @since 2013-06-26
38
     */
39
    public function setDeveloper($developer)
40
    {
41
        $this->developer = (string) $developer;
42
    }
43
44
    /**
45
     * {$inheritdoc}
46
     */
47
    public function isMet()
48
    {
49
        return (strtolower($this->developer) == $this->expectedDeveloper);
50
    }
51
}