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::setArticleNumber()   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\Coupon\Check;
4
5
use JMS\Serializer\Annotation as JMS;
6
use Speicher210\Monsum\Api\AbstractRequestData;
7
8
/**
9
 * The request data for checking a coupon.
10
 */
11
final class RequestData extends AbstractRequestData
12
{
13
    /**
14
     * The coupon code.
15
     *
16
     * @var string
17
     *
18
     * @JMS\Type("string")
19
     * @JMS\SerializedName("CODE")
20
     */
21
    protected $code;
22
23
    /**
24
     * The article number.
25
     *
26
     * @var string
27
     *
28
     * @JMS\Type("string")
29
     * @JMS\SerializedName("ARTICLE_NUMBER")
30
     */
31
    protected $articleNumber;
32
33
    /**
34
     * Constructor.
35
     *
36
     * @param string $code The code to request.
37
     * @param string $articleNumber The article number.
38
     */
39 12
    public function __construct($code, $articleNumber)
40
    {
41 12
        $this->setCode($code);
42 12
        $this->setArticleNumber($articleNumber);
43 12
    }
44
45
    /**
46
     * Get the code.
47
     *
48
     * @return string
49
     */
50
    public function getCode()
51
    {
52
        return $this->code;
53
    }
54
55
    /**
56
     * Set the code.
57
     *
58
     * @param string $code The code.
59
     * @return RequestData
60
     */
61 12
    public function setCode($code)
62
    {
63 12
        $this->code = $code;
64
65 12
        return $this;
66
    }
67
68
    /**
69
     * Get the article number.
70
     *
71
     * @return string
72
     */
73
    public function getArticleNumber()
74
    {
75
        return $this->articleNumber;
76
    }
77
78
    /**
79
     * Set the article number.
80
     *
81
     * @param string $articleNumber The article number.
82
     * @return RequestData
83
     */
84 12
    public function setArticleNumber($articleNumber)
85
    {
86 12
        $this->articleNumber = $articleNumber;
87
88 12
        return $this;
89
    }
90
}
91