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.

RequestData::setUsageDataId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Speicher210\Monsum\Api\Service\Subscription\DeleteUsageData;
4
5
use JMS\Serializer\Annotation as JMS;
6
use Speicher210\Monsum\Api\AbstractRequestData;
7
8
/**
9
 * The request data for deleting usage data for a subscription.
10
 */
11
final class RequestData extends AbstractRequestData
12
{
13
    /**
14
     * The usage data ID.
15
     *
16
     * @var string
17
     *
18
     * @JMS\Type("string")
19
     * @JMS\SerializedName("USAGEDATA_ID")
20
     */
21
    protected $usageDataId;
22
23
    /**
24
     * Constructor.
25
     *
26
     * @param string $usageDataId The usage data ID.
27
     */
28 3
    public function __construct($usageDataId)
29
    {
30 3
        $this->setUsageDataId($usageDataId);
31 3
    }
32
33
    /**
34
     * Get the usage data ID.
35
     *
36
     * @return string
37
     */
38 3
    public function getUsageDataId()
39
    {
40 3
        return $this->usageDataId;
41
    }
42
43
    /**
44
     * Set the usage data ID.
45
     *
46
     * @param string $usageDataId The usage data ID.
47
     * @return RequestData
48
     */
49 3
    public function setUsageDataId($usageDataId)
50
    {
51 3
        $this->usageDataId = $usageDataId;
52
53 3
        return $this;
54
    }
55
}
56