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 ( cde5b2...a2c9c7 )
by VEBER
13s
created

Certificate::setSnis()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
3
/*
4
 * This file is part of the KongAdminApi package.
5
 *
6
 * (c) Unikorp <https://github.com/unikorp>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Unikorp\KongAdminApi\Document;
13
14
use Unikorp\KongAdminApi\AbstractDocument;
15
16
/**
17
 * certificate
18
 *
19
 * @author VEBER Arnaud <https://github.com/VEBERArnaud>
20
 */
21
class Certificate extends AbstractDocument
22
{
23
    /**
24
     * cert
25
     * @var string $cert
26
     */
27
    protected $cert = null;
28
29
    /**
30
     * key
31
     * @var string $key
32
     */
33
    protected $key = null;
34
35
    /**
36
     * snis
37
     * @var string $snis
38
     */
39
    protected $snis = null;
40
41
    /**
42
     * set cert
43
     *
44
     * @param string $cert
45
     *
46
     * @return this
47
     */
48 1
    public function setCert(string $cert): self
49
    {
50 1
        $this->cert = $cert;
51
52 1
        return $this;
53
    }
54
55
    /**
56
     * get cert
57
     *
58
     * @return string
59
     */
60 1
    public function getCert(): string
61
    {
62 1
        return $this->cert;
63
    }
64
65
    /**
66
     * set key
67
     *
68
     * @param string $key
69
     *
70
     * @return this
71
     */
72 1
    public function setKey(string $key): self
73
    {
74 1
        $this->key = $key;
75
76 1
        return $this;
77
    }
78
79
    /**
80
     * get key
81
     *
82
     * @return string
83
     */
84 1
    public function getKey(): string
85
    {
86 1
        return $this->key;
87
    }
88
89
    /**
90
     * set snis
91
     *
92
     * @param string $snis
93
     *
94
     * @return this
95
     */
96 1
    public function setSnis(string $snis): self
97
    {
98 1
        $this->snis = $snis;
99
100 1
        return $this;
101
    }
102
103
    /**
104
     * get snis
105
     *
106
     * @return string
107
     */
108 1
    public function getSnis(): string
109
    {
110 1
        return $this->snis;
111
    }
112
113
    /**
114
     * get fields
115
     *
116
     * @return array
117
     */
118 1
    protected function getFields(): array
119
    {
120
        return [
121 1
            'cert',
122
            'key',
123
            'snis',
124
        ];
125
    }
126
}
127