Attribute   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 43
rs 10
c 0
b 0
f 0

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
    const KEY_DETAIL_URL = '_detail_url';
8
9
    const KEY_GENERAL_TIMEOUT = 'timeout';
10
11
    const KEY_VALUE_SET = '_valueSet';
12
13
    private $key;
14
    private $value;
15
    private $isStorable;
16
17
    public function __construct($key, $value, $isStorable = false)
18
    {
19
        $this->key = $key;
20
        $this->value = $value;
21
        $this->isStorable = $isStorable;
22
    }
23
24
    /**
25
     * @return mixed
26
     */
27
    public function getKey()
28
    {
29
        return $this->key;
30
    }
31
32
    /**
33
     * @return mixed
34
     */
35
    public function getValue()
36
    {
37
        return $this->value;
38
    }
39
40
    /**
41
     * @return bool
42
     */
43
    public function isIsStorable()
44
    {
45
        return $this->isStorable;
46
    }
47
}
48