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::retrieve()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
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