Completed
Push — master ( 22c257...e714e6 )
by Gabriel
13:14 queued 10:09
created

AbstractHelper   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 60%

Importance

Changes 0
Metric Value
dl 0
loc 15
ccs 3
cts 5
cp 0.6
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getView() 0 3 1
A setView() 0 3 1
1
<?php
2
3
namespace Nip\View\Helpers;
4
5
use Nip\View;
6
7
/**
8
 * Nip Framework
9
 *
10
 * @category   Nip
11
 * @copyright  2009 Nip Framework
12
 * @license    http://www.opensource.org/licenses/mit-license.php The MIT License
13
 * @version    SVN: $Id: Abstract.php 14 2009-04-13 11:24:22Z victor.stanciu $
14
 */
15
abstract class AbstractHelper
16
{
17
    protected $view;
18
19
    /**
20
     * @param View $view
21
     */
22 1
    public function setView(View $view)
23
    {
24 1
        $this->view = $view;
25 1
    }
26
27
    public function getView()
28
    {
29
        return $this->view;
30
    }
31
}
32