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.

Response::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 2
dl 0
loc 5
ccs 4
cts 4
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Foaas;
4
5
/**
6
 * A fucking FOAAS response.
7
 */
8
class Response
9
{
10
    /**
11
     * @var string
12
     */
13
    public $message;
14
15
    /**
16
     * @var string
17
     */
18
    public $subtitle;
19
20
    /**
21
     * Make a fucking response, okay?
22
     *
23
     * @param string $message
24
     * @param string $subtitle
25
     */
26 3
    public function __construct($message, $subtitle)
27
    {
28 3
        $this->message = $message;
29 3
        $this->subtitle = $subtitle;
30 3
    }
31
32
    /**
33
     * You'd better be able to fucking print this response as a string.
34
     *
35
     * @return string
36
     */
37 1
    public function __toString()
38
    {
39 1
        return "{$this->message} {$this->subtitle}";
40
    }
41
}
42