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 ( 5474a8...159267 )
by VEBER
12s
created

Cluster::clusterInformation()   A

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\Node;
13
14
use Psr\Http\Message\ResponseInterface;
15
use Unikorp\KongAdminApi\AbstractNode;
16
use Unikorp\KongAdminApi\Document\Cluster as Document;
17
18
/**
19
 * cluster
20
 *
21
 * @author VEBER Arnaud <https://github.com/VEBERArnaud>
22
 */
23
class Cluster extends AbstractNode
24
{
25
    /**
26
     * retrieve cluster status
27
     *
28
     * @return \Psr\Http\Message\ResponseInterface
29
     */
30 1
    public function retrieveClusterStatus(): ResponseInterface
31
    {
32 1
        return $this->get('/cluster');
33
    }
34
35
    /**
36
     * add a node
37
     *
38
     * @param \Unikorp\KongAdminApi\Document\Cluster $document
39
     *
40
     * @return \Psr\Http\Message\ResponseInterface
41
     */
42 1
    public function addANode(Document $document): ResponseInterface
43
    {
44 1
        return $this->post('/cluster', $document);
45
    }
46
47
    /**
48
     * forcibly remove a node
49
     *
50
     * @param \Unikorp\KongAdminApi\Document\Cluster $document
51
     *
52
     * @return \Psr\Http\Message\ResponseInterface
53
     */
54 1
    public function forciblyRemoveANode(Document $document): ResponseInterface
55
    {
56 1
        return $this->delete('/cluster', $document);
57
    }
58
}
59