AbstractHelper   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 60%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 4
c 1
b 0
f 0
dl 0
loc 12
ccs 3
cts 5
cp 0.6
rs 10

2 Methods

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