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 ( 30eaeb...98f5c5 )
by Jamie
12s
created

Metric   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 1
dl 0
loc 38
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\Metric\v1\Gnocchi\Models;
4
5
use OpenStack\Common\Resource\OperatorResource;
6
use OpenStack\Common\Resource\Retrievable;
7
use OpenStack\Metric\v1\Gnocchi\Api;
8
9
/**
10
 * @property Api $api
11
 */
12
class Metric extends OperatorResource implements Retrievable
13
{
14
    /** @var string */
15
    public $createdByUserId;
16
17
    /** @var \OpenStack\Metric\v1\Gnocchi\Models\Resource */
18
    public $resource;
19
20
    /** @var string */
21
    public $name;
22
23
    /** @var string */
24
    public $createdByProjectId;
25
26
    /** @var array */
27
    public $archivePolicy;
28
29
    /** @var string */
30
    public $id;
31
32
    /** @var string */
33
    public $unit;
34
35
    protected $aliases = [
36
        'created_by_user_id'    => 'createdByUserId',
37
        'created_by_project_id' => 'createdByProjectId',
38
        'archive_policy'        => 'archivePolicy',
39
    ];
40
41
    /**
42
     * {@inheritdoc}
43
     */
44
    public function retrieve()
45
    {
46
        $response = $this->executeWithState($this->api->getMetric());
47
        $this->populateFromResponse($response);
48
    }
49
}
50