CreditPoint::getCreditPointType()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 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