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   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 90
Duplicated Lines 0 %

Coupling/Cohesion

Components 5
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 5
lcom 5
cbo 1
dl 0
loc 90
ccs 15
cts 15
cp 1
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A url() 0 6 1
A method() 0 6 1
A status() 0 6 1
A fallbackUrl() 0 6 1
A fallbackMethod() 0 6 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