Passed
Pull Request — master (#38)
by
unknown
02:06
created

Options   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
dl 0
loc 33
ccs 5
cts 5
cp 1
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getActionId() 0 3 1
A setActionId() 0 5 1
1
<?php
2
namespace Maknz\Slack\BlockElement;
3
4
use Maknz\Slack\OptionsTrait;
5
6
abstract class Options extends Confirmable
7
{
8
    use OptionsTrait;
9
10
    /**
11
     * Options action.
12
     *
13
     * @var string
14
     */
15
    protected $action_id;
16
17
    /**
18
     * Get the options action.
19
     *
20
     * @return string
21
     */
22 8
    public function getActionId()
23
    {
24 8
        return $this->action_id;
25
    }
26
27
    /**
28
     * Set the options action.
29
     *
30
     * @param string $actionId
31
     *
32
     * @return Options
33
     */
34 26
    public function setActionId($actionId)
35
    {
36 26
        $this->action_id = $actionId;
37
38 26
        return $this;
39
    }
40
}
41