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 (#129)
by Chris
01:51
created

Host::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\Compute\v2\Models;
4
5
use OpenStack\Common\Resource\Creatable;
6
use OpenStack\Common\Resource\Deletable;
7
use OpenStack\Common\Resource\OperatorResource;
8
use OpenStack\Common\Resource\Listable;
9
use OpenStack\Common\Resource\Retrievable;
10
11
/**
12
 * Represents a Compute v2 Host.
13
 *
14
 * @property \OpenStack\Compute\v2\Api $api
15
 */
16
class Host extends OperatorResource implements Listable, Retrievable
17
{
18
19
    /** @var string **/
20
    public $name;
21
22
    /** @var string **/
23
    public $service;
24
25
    /** @var string **/
26
    public $zone;
27
28
    protected $resourceKey = 'host';
29
    protected $resourcesKey = 'hosts';
30
31
    protected $aliases = [
32
      'host_name' => 'name'
33
    ];
34
35
    /**
36
     * {@inheritDoc}
37
     */
38
    public function retrieve()
39
    {
40
        $response = $this->execute($this->api->getHost(), $this->getAttrs(['name']));
41
        $this->populateFromResponse($response);
42
    }
43
}
44