Completed
Push — master ( c24854...1bac45 )
by Nils
05:40 queued 02:46
created

Attribute   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 4
c 2
b 0
f 0
lcom 0
cbo 0
dl 0
loc 37
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getKey() 0 4 1
A getValue() 0 4 1
A isIsStorable() 0 4 1
1
<?php
2
3
namespace whm\Smoke\Rules;
4
5
class Attribute
6
{
7
    private $key;
8
    private $value;
9
    private $isStorable;
10
11
    public function __construct($key, $value, $isStorable = false)
12
    {
13
        $this->key = $key;
14
        $this->value = $value;
15
        $this->isStorable = $isStorable;
16
    }
17
18
    /**
19
     * @return mixed
20
     */
21
    public function getKey()
22
    {
23
        return $this->key;
24
    }
25
26
    /**
27
     * @return mixed
28
     */
29
    public function getValue()
30
    {
31
        return $this->value;
32
    }
33
34
    /**
35
     * @return bool
36
     */
37
    public function isIsStorable()
38
    {
39
        return $this->isStorable;
40
    }
41
}
42