Attribute::isIsStorable()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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