RequestData   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 45
ccs 8
cts 8
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getUsageDataId() 0 4 1
A setUsageDataId() 0 6 1
1
<?php
2
3
namespace Speicher210\Fastbill\Api\Service\Subscription\DeleteUsageData;
4
5
use JMS\Serializer\Annotation as JMS;
6
use Speicher210\Fastbill\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