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.

Request   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 31
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getService() 0 4 1
1
<?php
2
3
namespace Speicher210\Monsum\Api\Service\Subscription\SetAddon;
4
5
use JMS\Serializer\Annotation as JMS;
6
use Speicher210\Monsum\Api\AbstractRequest;
7
8
/**
9
 * The request for setting addon for a subscription.
10
 */
11
class Request extends AbstractRequest
12
{
13
    /**
14
     * The request body.
15
     *
16
     * @var array
17
     *
18
     * @JMS\Type("Speicher210\Monsum\Api\Service\Subscription\SetAddon\RequestData")
19
     * @JMS\SerializedName("DATA")
20
     */
21
    protected $data;
22
23
    /**
24
     * Constructor.
25
     *
26
     * @param RequestData $requestData The data for the request.
27
     */
28 3
    public function __construct(RequestData $requestData = null)
29
    {
30 3
        parent::__construct();
31 3
        $this->data = $requestData;
0 ignored issues
show
Documentation Bug introduced by
It seems like $requestData of type null or object<Speicher210\Monsu...n\SetAddon\RequestData> is incompatible with the declared type array of property $data.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
32 3
    }
33
34
    /**
35
     * {@inheritdoc}
36
     */
37 3
    public function getService()
38
    {
39 3
        return 'subscription.setaddon';
40
    }
41
}
42