BasePresenter::startup()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
rs 9.4285
cc 2
eloc 4
nc 2
nop 0
1
<?php
2
3
/**
4
 * This file is part of the Investform module for webcms2.
5
 * Copyright (c) @see LICENSE
6
 */
7
8
namespace FrontendModule\InvestformModule;
9
10
use WebCMS\InvestformModule\Common\FutureValueOfAnnuityCalculator;
11
12
/**
13
 * Description of InvestformPresenter
14
 *
15
 * @author Tomas Voslar <[email protected]>
16
 */
17
class BasePresenter extends \FrontendModule\BasePresenter
18
{
19
	protected $amountItems = array();
20
21
	protected function startup() 
22
    {
23
		parent::startup();
24
25
		foreach(range(200000, 4000000, 100000) as $number) {
26
			$this->amountItems[$number] = \WebCMS\Helpers\SystemHelper::price($number, '%.0n');
27
		}
28
	}
29
}
30