Completed
Push — master ( 5a3b7b...198f8c )
by Andrii
02:27
created

PercentPoint   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 21
ccs 0
cts 7
cp 0
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getNumber() 0 3 1
A __construct() 0 3 1
1
<?php
2
/**
3
 * PHP Billing Library
4
 *
5
 * @link      https://github.com/hiqdev/php-billing
6
 * @package   php-billing
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2017-2018, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hiqdev\php\billing\charge\modifiers;
12
13
/**
14
 * Percent point.
15
 *
16
 * @author Andrii Vasyliev <[email protected]>
17
 */
18
class PercentPoint
19
{
20
    /**
21
     * @var int|float|string
22
     */
23
    private $number;
24
25
    /**
26
     * @param int|float|string $number
27
     */
28
    public function __construct($number)
29
    {
30
        $this->number = $number;
31
    }
32
33
    /**
34
     * @return int|float|string
35
     */
36
    public function getNumber()
37
    {
38
        return $this->number;
39
    }
40
}
41