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
Pull Request — master (#159)
by Roman
02:01
created

GatewayInfo   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getAliases() 0 6 1
1
<?php
2
3
namespace OpenStack\Networking\v2\Extensions\Layer3\Models;
4
5
use OpenStack\Common\Resource\AbstractResource;
6
use OpenStack\Common\Resource\Alias;
7
8
class GatewayInfo extends AbstractResource
9
{
10
    /** @var string */
11
    public $networkId;
12
13
    /** @var string */
14
    public $enableSnat;
15
16
    /** @var []FixedIp */
17
    public $fixedIps;
18
19
    protected $aliases = [
20
        'network_id'  => 'networkId',
21
        'enable_snat' => 'enableSnat',
22
    ];
23
24
    /**
25
     * @inheritdoc
26
     */
27
    protected function getAliases(): array
28
    {
29
        return parent::getAliases() + [
30
            'fixed_ips' => new Alias('fixedIps', FixedIp::class, true)
31
        ];
32
    }
33
}
34