Test Failed
Push — master ( 5ee582...b52ead )
by Vladimir
03:03
created

PayloadButton::getLabel()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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