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

AbstractHelper::setView()   A

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