Total Complexity | 2 |
Total Lines | 63 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class Footer |
||
14 | { |
||
15 | /** |
||
16 | * Type of register |
||
17 | * |
||
18 | * @var string |
||
19 | */ |
||
20 | const TYPE = 9; |
||
21 | |||
22 | /** |
||
23 | * Sequence number |
||
24 | * |
||
25 | * @var Sequence |
||
26 | */ |
||
27 | private $sequence; |
||
28 | |||
29 | /** |
||
30 | * Total of new charges |
||
31 | * |
||
32 | * @var int |
||
33 | */ |
||
34 | private $total; |
||
35 | |||
36 | /** |
||
37 | * Sum of new charges |
||
38 | * |
||
39 | * @var int |
||
40 | */ |
||
41 | private $sum; |
||
42 | |||
43 | /** |
||
44 | * @param int $totalCharges |
||
45 | * @param int $sumCharges |
||
46 | * @param Sequence $sequence |
||
47 | */ |
||
48 | 1 | public function __construct($totalCharges = 0, $sumCharges = 0, Sequence $sequence) |
|
49 | { |
||
50 | 1 | $this->total = $totalCharges; |
|
51 | 1 | $this->sum = $sumCharges; |
|
52 | 1 | $this->sequence = $sequence; |
|
53 | 1 | } |
|
54 | |||
55 | /** |
||
56 | * Render footer line |
||
57 | * |
||
58 | * @return string |
||
59 | */ |
||
60 | 1 | public function render() |
|
76 | } |
||
77 | } |
||
78 |