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 ( 2b0490...beaba1 )
by VEBER
15s
created

Cluster   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 44
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setName() 0 6 1
A getName() 0 4 1
A getFields() 0 6 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
 * cluster
18
 *
19
 * @author VEBER Arnaud <https://github.com/VEBERArnaud>
20
 */
21
class Cluster extends AbstractDocument
22
{
23
    /**
24
     * name
25
     * @var string $name
26
     */
27
    protected $name = null;
28
29
    /**
30
     * set name
31
     *
32
     * @param string $name
33
     *
34
     * @return this
35
     */
36 1
    public function setName(string $name): self
37
    {
38 1
        $this->name = $name;
39
40 1
        return $this;
41
    }
42
43
    /**
44
     * get name
45
     *
46
     * @return string
47
     */
48 1
    public function getName(): string
49
    {
50 1
        return $this->name;
51
    }
52
53
    /**
54
     * get fields
55
     *
56
     * @return array
57
     */
58 1
    protected function getFields(): array
59
    {
60
        return [
61 1
            'name',
62
        ];
63
    }
64
}
65