CreditPoint   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

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 2
    public function getAmount()
27
    {
28 2
        return $this->amount;
29
    }
30
31
    /**
32
     * @param int $amount
33
     *
34
     * @return CreditPoint
35
     */
36 3
    public function setAmount($amount)
37
    {
38 3
        $this->amount = (int) $amount;
39
40 3
        return $this;
41
    }
42
43
    /**
44
     * @return string
45
     */
46 2
    public function getCreditPointType()
47
    {
48 2
        return $this->creditPointType;
49
    }
50
51
    /**
52
     * @param string $creditPointType
53
     *
54
     * @return CreditPoint
55
     */
56 3
    public function setCreditPointType($creditPointType)
57
    {
58 3
        $this->creditPointType = $creditPointType;
59
60 3
        return $this;
61
    }
62
}
63