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 ( a45d5b...8da4ae )
by Gregorio
07:07
created

TwilioConfig   A

Complexity

Total Complexity 10

Size/Duplication

Total Lines 91
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 57.14%

Importance

Changes 0
Metric Value
wmc 10
lcom 1
cbo 0
dl 0
loc 91
ccs 12
cts 21
cp 0.5714
rs 10
c 0
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getAuthToken() 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 4
    public function __construct(array $config)
18
    {
19 4
        $this->config = $config;
20 4
    }
21
22
    /**
23
     * Get the auth token.
24
     *
25
     * @return string
26
     */
27
    public function getAuthToken()
28
    {
29
        return $this->config['auth_token'];
30
    }
31
32
	/**
33
	 * Get the username.
34
	 *
35
	 * @return string
36
	 */
37
	public function getUsername()
38
    {
39
    	return $this->config['username'];
40
    }
41
42
	/**
43
	 * Get the password.
44
	 *
45
	 * @return string
46
	 */
47
	public function getPassword()
48
    {
49
    	return $this->config['password'];
50
    }
51
52
    /**
53
     * Get the account sid.
54
     *
55
     * @return string
56
     */
57
    public function getAccountSid()
58
    {
59
        return $this->config['account_sid'];
60
    }
61
62
    /**
63
     * Get the default from address.
64
     *
65
     * @return string
66
     */
67 3
    public function getFrom()
68
    {
69 3
        return $this->config['from'];
70
    }
71
72
    /**
73
     * Get the alphanumeric sender.
74
     *
75
     * @return string
76
     */
77 1
    public function getAlphanumericSender()
78
    {
79 1
        if (isset($this->config['alphanumeric_sender'])) {
80 1
            return $this->config['alphanumeric_sender'];
81
        }
82
    }
83
84
    /**
85
     * Get the service sid.
86
     *
87
     * @return string
88
     */
89 3
    public function getServiceSid()
90
    {
91 3
        if (isset($this->config['sms_service_sid'])) {
92 1
            return $this->config['sms_service_sid'];
93
        }
94 2
    }
95
}
96