Passed
Push — master ( ff83e3...5f4a5c )
by Ehsan
03:54
created

Action::setName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Botonomous;
4
5
/**
6
 * Class Action.
7
 *
8
 * Model for Actions
9
 */
10
class Action extends AbstractBaseSlack
11
{
12
    private $name;
13
    private $text;
14
    private $value;
15
    private $type;
16
17
    /**
18
     * @return string
19
     */
20 1
    public function getName()
21
    {
22 1
        return $this->name;
23
    }
24
25
    /**
26
     * @param string $name
27
     */
28 3
    public function setName($name)
29
    {
30 3
        $this->name = $name;
31 3
    }
32
33
    /**
34
     * @return string
35
     */
36 2
    public function getText()
37
    {
38 2
        return $this->text;
39
    }
40
41
    /**
42
     * @param string $text
43
     */
44 1
    public function setText($text)
45
    {
46 1
        $this->text = $text;
47 1
    }
48
49
    /**
50
     * @return string
51
     */
52 1
    public function getValue()
53
    {
54 1
        return $this->value;
55
    }
56
57
    /**
58
     * @param string $value
59
     */
60 3
    public function setValue($value)
61
    {
62 3
        $this->value = $value;
63 3
    }
64
65
    /**
66
     * @return string
67
     */
68 1
    public function getType()
69
    {
70 1
        return $this->type;
71
    }
72
73
    /**
74
     * @param string $type
75
     */
76 4
    public function setType($type)
77
    {
78 4
        $this->type = $type;
79 4
    }
80
}
81