Completed
Push — master ( b8f507...7ed4f4 )
by Ronaldo
01:34
created

CreditPoint   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 52
ccs 10
cts 10
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getAmount() 0 4 1
A setAmount() 0 6 1
A getCreditPointType() 0 4 1
A setCreditPointType() 0 6 1
1
<?php
2
3
namespace WSW\SiftScience\Entities;
4
5
/**
6
 * Class CreditPoint
7
 *
8
 * @package WSW\SiftScience\Entities
9
 * @author Ronaldo Matos Rodrigues <[email protected]>
10
 */
11
class CreditPoint
12
{
13
    /**
14
     * @var int
15
     */
16
    private $amount;
17
18
    /**
19
     * @var string
20
     */
21
    private $creditPointType;
22
23
    /**
24
     * @return int
25
     */
26 1
    public function getAmount()
27
    {
28 1
        return $this->amount;
29
    }
30
31
    /**
32
     * @param int $amount
33
     *
34
     * @return CreditPoint
35
     */
36 2
    public function setAmount($amount)
37
    {
38 2
        $this->amount = (int) $amount;
39
40 2
        return $this;
41
    }
42
43
    /**
44
     * @return string
45
     */
46 1
    public function getCreditPointType()
47
    {
48 1
        return $this->creditPointType;
49
    }
50
51
    /**
52
     * @param string $creditPointType
53
     *
54
     * @return CreditPoint
55
     */
56 2
    public function setCreditPointType($creditPointType)
57
    {
58 2
        $this->creditPointType = $creditPointType;
59
60 2
        return $this;
61
    }
62
}
63