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.

SSLCertificate   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 54
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 54
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getCertificate() 0 4 1
A getCertificatePassPhrase() 0 4 1
A setCertificate() 0 6 1
A setCertificatePassPhrase() 0 6 1
1
<?php
2
3
/*
4
 * (c) Alexander Zhukov <[email protected]>
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace Zbox\UnifiedPush\Utils\ClientCredentials\DTO;
11
12
use Zbox\UnifiedPush\Utils\ClientCredentials\CredentialsInterface;
13
14
/**
15
 * Class Credentials
16
 * @package Zbox\UnifiedPush\Utils\ClientCredentials
17
 */
18
class SSLCertificate implements CredentialsInterface
19
{
20
    /**
21
     * Provider certificate
22
     *
23
     * @var string
24
     */
25
    private $certificate;
26
27
    /**
28
     * Certificate pass phrase
29
     *
30
     * @var string
31
     */
32
    private $certificatePassPhrase;
33
34
    /**
35
     * @return string
36
     */
37
    public function getCertificate()
38
    {
39
        return $this->certificate;
40
    }
41
42
    /**
43
     * @return string
44
     */
45
    public function getCertificatePassPhrase()
46
    {
47
        return $this->certificatePassPhrase;
48
    }
49
50
    /**
51
     * @param string $certificate
52
     * @return $this
53
     */
54
    public function setCertificate($certificate)
55
    {
56
        $this->certificate = $certificate;
57
58
        return $this;
59
    }
60
61
    /**
62
     * @param string $certificatePassPhrase
63
     * @return $this
64
     */
65
    public function setCertificatePassPhrase($certificatePassPhrase)
0 ignored issues
show
Comprehensibility Naming introduced by
The variable name $certificatePassPhrase exceeds the maximum configured length of 20.

Very long variable names usually make code harder to read. It is therefore recommended not to make variable names too verbose.

Loading history...
66
    {
67
        $this->certificatePassPhrase = $certificatePassPhrase;
68
69
        return $this;
70
    }
71
}
72