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.

SniDocument::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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
 * sni document
18
 *
19
 * @author VEBER Arnaud <https://github.com/VEBERArnaud>
20
 */
21
class SniDocument extends AbstractDocument
22
{
23
    /**
24
     * name
25
     * @var string $name
26
     */
27
    protected $name = null;
28
29
    /**
30
     * ssl certificate id
31
     * @var string $sslCertificateId
32
     */
33
    protected $sslCertificateId = null;
34
35
    /**
36
     * set name
37
     *
38
     * @param string $name
39
     *
40
     * @return this
41
     */
42 1
    public function setName(string $name): self
43
    {
44 1
        $this->name = $name;
45
46 1
        return $this;
47
    }
48
49
    /**
50
     * get name
51
     *
52
     * @return string
53
     */
54 1
    public function getName(): string
55
    {
56 1
        return $this->name;
57
    }
58
59
    /**
60
     * set ssl certificate id
61
     *
62
     * @param string $sslCertificateId
63
     *
64
     * @return this
65
     */
66 1
    public function setSslCertificateId(string $sslCertificateId): self
67
    {
68 1
        $this->sslCertificateId = $sslCertificateId;
69
70 1
        return $this;
71
    }
72
73
    /**
74
     * get ssl certificate id
75
     *
76
     * @return string
77
     */
78 1
    public function getSslCertificateId(): string
79
    {
80 1
        return $this->sslCertificateId;
81
    }
82
83
    /**
84
     * get fields
85
     *
86
     * @return array
87
     */
88 2
    protected function getFields(): array
89
    {
90
        return [
91 2
            'name',
92
            'sslCertificateId',
93
        ];
94
    }
95
}
96