GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — master (#9)
by Gallice
03:41 queued 55s
created

StartedButton::jsonSerialize()   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 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Tgallice\FBMessenger\Model\ThreadSetting;
4
5
use Tgallice\FBMessenger\Model\ThreadSetting;
6
7
class StartedButton implements ThreadSetting, \JsonSerializable
8
{
9
    /**
10
     * @var string
11
     */
12
    private $payload;
13
14 5
    public function __construct($payload)
15
    {
16 5
        $this->payload = $payload;
17 5
    }
18
19
    /**
20
     * @return string
21
     */
22 1
    public function getPayload()
23
    {
24 1
        return $this->payload;
25
    }
26
27
    /**
28
     * @inheritdoc
29
     */
30 2
    public function jsonSerialize()
31
    {
32
        return [
33 2
            'payload' => $this->payload,
34 2
        ];
35
    }
36
}
37