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
Push — master ( b5a462...14c24e )
by Gregorio
11s
created

TwilioMessage::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
3
namespace NotificationChannels\Twilio;
4
5
abstract class TwilioMessage
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
     * @param string $content
23
     *
24
     * @return static
25
     */
26 4
    public static function create($content = '')
27
    {
28 4
        return new static($content);
29
    }
30
31
    /**
32
     * Create a new message instance.
33
     *
34
     * @param  string  $content
35
     */
36 18
    public function __construct($content = '')
37
    {
38 18
        $this->content = $content;
39 18
    }
40
41
    /**
42
     * Set the message content.
43
     *
44
     * @param  string  $content
45
     *
46
     * @return $this
47
     */
48 2
    public function content($content)
49
    {
50 2
        $this->content = $content;
51
52 2
        return $this;
53
    }
54
55
    /**
56
     * Set the phone number the message should be sent from.
57
     *
58
     * @param  string  $from
59
     *
60
     * @return $this
61
     */
62 2
    public function from($from)
63
    {
64 2
        $this->from = $from;
65
66 2
        return $this;
67
    }
68
}
69