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

TwilioCallMessage::status()   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
class TwilioCallMessage extends TwilioMessage
6
{
7
    const STATUS_CANCELED = 'canceled';
8
    const STATUS_COMPLETED = 'completed';
9
10
    /**
11
     * @var null|string
12
     */
13
    public $method = null;
14
15
    /**
16
     * @var null|string
17
     */
18
    public $status = null;
19
20
    /**
21
     * @var null|string
22
     */
23
    public $fallbackUrl = null;
24
25
    /**
26
     * @var null|string
27
     */
28
    public $fallbackMethod = null;
29
30
    /**
31
     * Set the message url.
32
     *
33
     * @param  string $url
34
     * @return $this
35
     */
36
    public function url($url)
37
    {
38
        $this->content = $url;
39
40
        return $this;
41
    }
42
43
    /**
44
     * Set the message url request method.
45
     *
46
     * @param  string $method
47
     * @return $this
48
     */
49
    public function method($method)
50
    {
51
        $this->method = $method;
52
53
        return $this;
54
    }
55
56
    /**
57
     * Set the status for the current calls.
58
     *
59
     * @param  string $status
60
     * @return $this
61
     */
62
    public function status($status)
63
    {
64
        $this->status = $status;
65
66
        return $this;
67
    }
68
69
    /**
70
     * Set the fallback url.
71
     *
72
     * @param string $fallbackUrl
73
     * @return $this
74
     */
75
    public function fallbackUrl($fallbackUrl)
76
    {
77
        $this->fallbackUrl = $fallbackUrl;
78
79
        return $this;
80
    }
81
82
    /**
83
     * Set the fallback url request method.
84
     *
85
     * @param string $fallbackMethod
86
     * @return $this
87
     */
88
    public function fallbackMethod($fallbackMethod)
89
    {
90
        $this->fallbackMethod = $fallbackMethod;
91
92
        return $this;
93
    }
94
}
95