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 ( 0894f3...553446 )
by Florian
12s
created

TwilioConfig   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 71
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 8
lcom 1
cbo 0
dl 0
loc 71
ccs 0
cts 28
cp 0
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getAccountSid() 0 4 1
A getAuthToken() 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 account sid.
24
     *
25
     * @return string
26
     */
27
    public function getAccountSid()
28
    {
29
        return $this->config['account_sid'];
30
    }
31
32
    /**
33
     * Get the auth token.
34
     *
35
     * @return string
36
     */
37
    public function getAuthToken()
38
    {
39
        return $this->config['auth_token'];
40
    }
41
42
    /**
43
     * Get the default from address.
44
     *
45
     * @return string
46
     */
47
    public function getFrom()
48
    {
49
        return $this->config['from'];
50
    }
51
52
    /**
53
     * Get the alphanumeric sender.
54
     *
55
     * @return string
56
     */
57
    public function getAlphanumericSender()
58
    {
59
        if (isset($this->config['alphanumeric_sender'])) {
60
            return $this->config['alphanumeric_sender'];
61
        }
62
    }
63
64
    /**
65
     * Get the service sid.
66
     *
67
     * @return string
68
     */
69
    public function getServiceSid()
70
    {
71
        if (isset($this->config['sms_service_sid'])) {
72
            return $this->config['sms_service_sid'];
73
        }
74
    }
75
}
76