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   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 37.5%

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 2
dl 0
loc 44
ccs 3
cts 8
cp 0.375
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getSuppressEmail() 0 4 1
A setSuppressEmail() 0 4 1
1
<?php
2
3
namespace Speicher210\Monsum\Api\Service\Customer\Update;
4
5
use JMS\Serializer\Annotation as JMS;
6
use Speicher210\Monsum\Api\AbstractRequestData;
7
use Speicher210\Monsum\Api\Model\CustomerTrait;
8
9
/**
10
 * The request for updating the customers.
11
 */
12
final class RequestData extends AbstractRequestData
13
{
14
    use CustomerTrait;
15
16
    /**
17
     * FLag if sending the confirmation email should be sent.
18
     *
19
     * @var integer
20
     *
21
     * @JMS\Type("integer")
22
     * @JMS\SerializedName("SUPPRESS_MAIL")
23
     */
24
    protected $suppressEmail;
25
26
    /**
27
     * Constructor.
28
     *
29
     * @param integer $customerId The customer ID to update.
30
     */
31 3
    public function __construct($customerId)
32
    {
33 3
        $this->setCustomerId($customerId);
34 3
    }
35
36
    /**
37
     * Get if sending confirmation email is suppressed.
38
     *
39
     * @return boolean
40
     */
41
    public function getSuppressEmail()
42
    {
43
        return (boolean) $this->suppressEmail;
44
    }
45
46
    /**
47
     * Set if the confirmation email should be suppressed.
48
     *
49
     * @param boolean $suppressEmail Flag if the confirmation email should be suppressed.
50
     */
51
    public function setSuppressEmail($suppressEmail)
52
    {
53
        $this->suppressEmail = (integer)(boolean)$suppressEmail;
54
    }
55
}
56