Action::setName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

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
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Botonomous;
4
5
class Action extends AbstractBaseSlack
6
{
7
    private $name;
8
    private $text;
9
    private $value;
10
    private $type;
11
12
    /**
13
     * @return string
14
     */
15 1
    public function getName(): string
16
    {
17 1
        return $this->name;
18
    }
19
20
    /**
21
     * @param string $name
22
     */
23 3
    public function setName(string $name)
24
    {
25 3
        $this->name = $name;
26 3
    }
27
28
    /**
29
     * @return string
30
     */
31 2
    public function getText()
32
    {
33 2
        return $this->text;
34
    }
35
36
    /**
37
     * @param string $text
38
     */
39 1
    public function setText(string $text)
40
    {
41 1
        $this->text = $text;
42 1
    }
43
44
    /**
45
     * @return string
46
     */
47 1
    public function getValue(): string
48
    {
49 1
        return $this->value;
50
    }
51
52
    /**
53
     * @param string $value
54
     */
55 3
    public function setValue(string $value)
56
    {
57 3
        $this->value = $value;
58 3
    }
59
60
    /**
61
     * @return string
62
     */
63 1
    public function getType(): string
64
    {
65 1
        return $this->type;
66
    }
67
68
    /**
69
     * @param string $type
70
     */
71 4
    public function setType(string $type)
72
    {
73 4
        $this->type = $type;
74 4
    }
75
}
76