Completed
Push — master ( 44dea0...59b9fb )
by Vladimir
02:47
created

ReplyButton   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 28
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getLabel() 0 4 1
A setLabel() 0 6 1
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 label.
13
     *
14
     * @return string
15
     */
16 1
    public function getLabel(): string
17
    {
18 1
        return $this->label;
19
    }
20
21
    /**
22
     * Set label.
23
     *
24
     * @param string $label
25
     *
26
     * @return ReplyButton
27
     */
28 1
    public function setLabel(string $label): ReplyButton
29
    {
30 1
        $this->label = $label;
31
32 1
        return $this;
33
    }
34
}
35