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.

ResourceInterface::model()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 1
1
<?php declare(strict_types=1);
2
3
namespace OpenStack\Common\Resource;
4
5
use Psr\Http\Message\ResponseInterface;
6
7
/**
8
 * Represents an API resource.
9
 *
10
 * @package OpenStack\Common\Resource
11
 */
12
interface ResourceInterface
13
{
14
    /**
15
     * All models which represent an API resource should be able to be populated
16
     * from a {@see ResponseInterface} object.
17
     *
18
     * @param ResponseInterface $response
19
     *
20
     * @return self
21
     */
22
    public function populateFromResponse(ResponseInterface $response);
23
24
    /**
25
     * @param array $data
26
     * @return mixed
27
     */
28
    public function populateFromArray(array $data);
29
30
    /**
31
     * @param string $name The name of the model class.
0 ignored issues
show
Bug introduced by
There is no parameter named $name. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
32
     * @param mixed  $data Either a {@see ResponseInterface} or data array that will populate the newly
33
     *                     created model class.
34
     *
35
     * @return \OpenStack\Common\Resource\ResourceInterface
36
     */
37
    public function model(string $class, $data = null): ResourceInterface;
38
}
39