CalculatorPresenter   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A startup() 0 4 1
A beforeRender() 0 8 1
1
<?php
2
3
/**
4
 * This file is part of the Investform module for webcms2.
5
 * Copyright (c) @see LICENSE
6
 */
7
8
namespace AdminModule\InvestformModule;
9
10
use Nette\Forms\Form;
11
use WebCMS\InvestformModule\Common\PdfPrinter;
12
use WebCMS\InvestformModule\Common\EmailSender;
13
use WebCMS\InvestformModule\Entity\Address;
14
15
/**
16
 * Description of
17
 *
18
 * @author Tomas Voslar <[email protected]>
19
 */
20
class CalculatorPresenter extends BasePresenter
21
{
22
    protected function startup()
23
    {
24
    	parent::startup();
25
    }
26
27
    protected function beforeRender()
28
    {
29
	   parent::beforeRender();
30
31
       $this->forward('Investform:default', array(
32
            'idPage' => $this->actualPage->getId()
33
        ));
34
    }
35
}