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.

CustomerAttribute   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 75
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setId() 0 6 1
A getCustomerId() 0 4 1
A setCustomerId() 0 6 1
A getStripeCustomerId() 0 4 1
A setStripeCustomerId() 0 6 1
1
<?php
2
/**
3
 * Neta\Shopware\SDK\Entity.
4
 *
5
 * Copyright 2016 LeadCommerce
6
 *
7
 * @author    Alexander Mahrt <[email protected]>
8
 * @copyright 2016 LeadCommerce <[email protected]>
9
 */
10
11
namespace Neta\Shopware\SDK\Entity;
12
13
/**
14
 * Class CustomerAttribute.
15
 */
16
class CustomerAttribute extends Base
17
{
18
    /**
19
     * @var int
20
     */
21
    protected $id;
22
    /**
23
     * @var int
24
     */
25
    protected $customerId;
26
    /**
27
     * @var string
28
     */
29
    protected $stripeCustomerId;
30
31
    /**
32
     * @return int
33
     */
34
    public function getId()
35
    {
36
        return $this->id;
37
    }
38
39
    /**
40
     * @param int $id
41
     *
42
     * @return CustomerAttribute
43
     */
44
    public function setId($id)
45
    {
46
        $this->id = $id;
47
48
        return $this;
49
    }
50
51
    /**
52
     * @return int
53
     */
54
    public function getCustomerId()
55
    {
56
        return $this->customerId;
57
    }
58
59
    /**
60
     * @param int $customerId
61
     *
62
     * @return CustomerAttribute
63
     */
64
    public function setCustomerId($customerId)
65
    {
66
        $this->customerId = $customerId;
67
68
        return $this;
69
    }
70
71
    /**
72
     * @return int
73
     */
74
    public function getStripeCustomerId()
75
    {
76
        return $this->stripeCustomerId;
77
    }
78
79
    /**
80
     * @param int $stripeCustomerId
81
     *
82
     * @return CustomerAttribute
83
     */
84
    public function setStripeCustomerId($stripeCustomerId)
85
    {
86
        $this->stripeCustomerId = $stripeCustomerId;
0 ignored issues
show
Documentation Bug introduced by
The property $stripeCustomerId was declared of type string, but $stripeCustomerId is of type integer. Maybe add a type cast?

This check looks for assignments to scalar types that may be of the wrong type.

To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.

$answer = 42;

$correct = false;

$correct = (bool) $answer;
Loading history...
87
88
        return $this;
89
    }
90
}
91