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 ( aacc86...a45d5b )
by Florian
02:10
created

TwilioConfig::getPassword()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace NotificationChannels\Twilio;
4
5
class TwilioConfig
6
{
7
    /**
8
     * @var array
9
     */
10
    private $config;
11
12
    /**
13
     * TwilioConfig constructor.
14
     *
15
     * @param array $config
16
     */
17
    public function __construct(array $config)
18
    {
19
        $this->config = $config;
20
    }
21
22
	/**
23
	 * Get the username.
24
	 *
25
	 * @return string
26
	 */
27
	public function getUsername()
28
    {
29
    	return $this->config['username'];
30
    }
31
32
	/**
33
	 * Get the password.
34
	 *
35
	 * @return string
36
	 */
37
	public function getPassword()
38
    {
39
    	return $this->config['password'];
40
    }
41
42
    /**
43
     * Get the account sid.
44
     *
45
     * @return string
46
     */
47
    public function getAccountSid()
48
    {
49
        return $this->config['account_sid'];
50
    }
51
52
    /**
53
     * Get the default from address.
54
     *
55
     * @return string
56
     */
57
    public function getFrom()
58
    {
59
        return $this->config['from'];
60
    }
61
62
    /**
63
     * Get the alphanumeric sender.
64
     *
65
     * @return string
66
     */
67
    public function getAlphanumericSender()
68
    {
69
        if (isset($this->config['alphanumeric_sender'])) {
70
            return $this->config['alphanumeric_sender'];
71
        }
72
    }
73
74
    /**
75
     * Get the service sid.
76
     *
77
     * @return string
78
     */
79
    public function getServiceSid()
80
    {
81
        if (isset($this->config['sms_service_sid'])) {
82
            return $this->config['sms_service_sid'];
83
        }
84
    }
85
}
86