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.

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