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.

PlivoMessage::content()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 6
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace NotificationChannels\Plivo;
4
5
class PlivoMessage
6
{
7
    /**
8
     * The message content.
9
     *
10
     * @var string
11
     */
12
    public $content;
13
14
    /**
15
     * The phone number the message should be sent from.
16
     *
17
     * @var string
18
     */
19
    public $from;
20
21
    /**
22
     * Create a new message instance.
23
     *
24
     * @param  string $content
25
     *
26
     * @return static
27
     */
28
    public static function create($content = '')
29
    {
30
        return new static($content);
31
    }
32
33
    /**
34
     * Create a new message instance.
35
     *
36
     * @param  string  $content
37
     */
38 3
    public function __construct($content = '')
39
    {
40 3
        $this->content = $content;
41 3
    }
42
43
    /**
44
     * Set the message content.
45
     *
46
     * @param  string  $content
47
     *
48
     * @return $this
49
     */
50 1
    public function content($content)
51
    {
52 1
        $this->content = $content;
53
54 1
        return $this;
55
    }
56
57
    /**
58
     * Set the phone number the message should be sent from.
59
     *
60
     * @param  string  $from
61
     *
62
     * @return $this
63
     */
64 1
    public function from($from)
65
    {
66 1
        $this->from = $from;
67
68 1
        return $this;
69
    }
70
}
71