BasePresenter   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 1
cbo 2
dl 0
loc 13
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A startup() 0 8 2
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