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.

LoadBalancerStat   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 1
dl 0
loc 46
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A retrieve() 0 5 1
1
<?php declare(strict_types=1);
2
3
namespace OpenStack\Networking\v2\Models;
4
5
use OpenStack\Common\Resource\Retrievable;
6
use OpenStack\Common\Resource\OperatorResource;
7
8
/**
9
 * Represents Neutron v2 LoadBalancer Stats
10
 *
11
 * @property Api $api
12
 */
13
class LoadBalancerStat extends OperatorResource implements Retrievable
14
{
15
    /**
16
     * @var string
17
     */
18
    public $bytesIn;
19
20
    /**
21
     * @var string
22
     */
23
    public $bytesOut;
24
25
    /**
26
     * @var integer
27
     */
28
    public $totalConnections;
29
30
    /**
31
     * @var integer
32
     */
33
    public $activeConnections;
34
35
    /**
36
     * @var string
37
     */
38
    public $loadbalancerId;
39
40
    protected $resourceKey = 'stats';
41
42
    protected $aliases = [
43
        'bytes_in'           => 'bytesIn',
44
        'bytes_out'          => 'bytesOut',
45
        'total_connections'  => 'totalConnections',
46
        'active_connections' => 'activeConnections',
47
        'loadbalancer_id'    => 'loadbalancerId'
48
    ];
49
50
    /**
51
     * {@inheritDoc}
52
     */
53
    public function retrieve()
54
    {
55
        $response = $this->execute($this->api->getLoadBalancerStats(), ['loadbalancerId' => (string)$this->loadbalancerId]);
56
        $this->populateFromResponse($response);
57
    }
58
}
59