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

Attribute::getKey()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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