AbstractHelper::getView()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 0
cts 1
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
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