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 ( 4c36ba...7392fc )
by Gregorio
01:32
created

TwilioMessage::statusCallbackMethod()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 5
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 2
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
     * @var null|string
23
     */
24
    public $statusCallback = null;
25
26
    /**
27
     * @var null|string
28
     */
29
    public $statusCallbackMethod = null;
30
31
    /**
32
     * Create a message object.
33
     * @param string $content
34
     * @return static
35
     */
36
    public static function create($content = '')
37
    {
38
        return new static($content);
39
    }
40
41
    /**
42
     * Create a new message instance.
43
     *
44
     * @param  string $content
45
     */
46
    public function __construct($content = '')
47
    {
48
        $this->content = $content;
49
    }
50
51
    /**
52
     * Set the message content.
53
     *
54
     * @param  string $content
55
     * @return $this
56
     */
57
    public function content($content)
58
    {
59
        $this->content = $content;
60
61
        return $this;
62
    }
63
64
    /**
65
     * Set the phone number the message should be sent from.
66
     *
67
     * @param  string $from
68
     * @return $this
69
     */
70
    public function from($from)
71
    {
72
        $this->from = $from;
73
74
        return $this;
75
    }
76
77
    /**
78
     * Get the from address.
79
     *
80
     * @return string
81
     */
82
    public function getFrom()
83
    {
84
        return $this->from;
85
    }
86
87
    /**
88
     * Set the status callback.
89
     *
90
     * @param string $statusCallback
91
     * @return $this
92
     */
93
    public function statusCallback($statusCallback)
94
    {
95
        $this->statusCallback = $statusCallback;
96
97
        return $this;
98
    }
99
100
    /**
101
     * Set the status callback request method.
102
     *
103
     * @param string $statusCallbackMethod
104
     * @return $this
105
     */
106
    public function statusCallbackMethod($statusCallbackMethod)
107
    {
108
        $this->statusCallbackMethod = $statusCallbackMethod;
109
110
        return $this;
111
    }
112
}
113