AbstractHelper::setView()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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