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   A

Complexity

Total Complexity 9

Size/Duplication

Total Lines 81
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 9
lcom 1
cbo 0
dl 0
loc 81
ccs 0
cts 32
cp 0
rs 10
c 0
b 0
f 0

7 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getUsername() 0 4 1
A getPassword() 0 4 1
A getAccountSid() 0 4 1
A getFrom() 0 4 1
A getAlphanumericSender() 0 6 2
A getServiceSid() 0 6 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