Completed
Push — master ( 59b9fb...b4679f )
by Vladimir
02:55
created

ReplyButton::setLabel()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 6
ccs 3
cts 3
cp 1
crap 1
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace FondBot\Templates\Keyboard;
6
7
class ReplyButton implements Button
8
{
9
    private $label;
10
11
    /**
12
     * Get name.
13
     *
14
     * @return string
15
     */
16 1
    public function getName(): string
17
    {
18 1
        return 'ReplyButton';
19
    }
20
21
    /**
22
     * Get label.
23
     *
24
     * @return string
25
     */
26 1
    public function getLabel(): string
27
    {
28 1
        return $this->label;
29
    }
30
31
    /**
32
     * Set label.
33
     *
34
     * @param string $label
35
     *
36
     * @return ReplyButton
37
     */
38 1
    public function setLabel(string $label): ReplyButton
39
    {
40 1
        $this->label = $label;
41
42 1
        return $this;
43
    }
44
}
45