Test Setup Failed
Push — master ( 30ba39...772506 )
by Björn
18:37
created

Element::__invoke()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 1
1
<?php
2
/**
3
 * BB's Zend Framework 2 Components
4
 * 
5
 * UI Components
6
 *
7
 * @package     [MyApplication]
8
 * @subpackage  BB's Zend Framework 2 Components
9
 * @subpackage  UI Components
10
 * @author      Björn Bartels <[email protected]>
11
 * @link        https://gitlab.bjoernbartels.earth/groups/zf2
12
 * @license     http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
13
 * @copyright   copyright (c) 2016 Björn Bartels <[email protected]>
14
 */
15
16
namespace UIComponents\View\Helper\Utilities;
17
18
/**
19
 *
20
 * render nothing
21
 *
22
 */
23
class Element extends \UIComponents\View\Helper\AbstractHelper 
24
{
25
26
    /**
27
     * View helper entry point:
28
     * Retrieves helper and optionally sets container to operate on
29
     *
30
     * @param  AbstractContainer $container [optional] container to operate on
31
     * @return self
32
     */
33
    public function __invoke($container = null)
34
    {
35
        if (null !== $container) {
36
            $this->setContainer($container);
37
        }
38
39
        return ($this);
40
    }
41
42
    /**
43
     * render nothing
44
     * 
45
     * @return string
46
     */
47
    public function render($container = null)
48
    {
49
        $html = '';
50
        
51
        return $html;
52
    }
53
54
}