Completed
Push — master ( 72cc95...6cef6f )
by Tim
13s
created

WrapCurlyBracesViewHelper   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 32
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A render() 0 4 1
1
<?php
2
/**
3
 * WrapCurlyBracesViewHelper
4
 *
5
 * @author  Tim Lochmüller
6
 */
7
8
namespace HVP\Html5videoplayer\ViewHelpers\Format;
9
10
use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper;
11
12
/**
13
 * WrapCurlyBracesViewHelper
14
 */
15
class WrapCurlyBracesViewHelper extends AbstractViewHelper
16
{
17
18
    /**
19
     * Specifies whether the escaping interceptors should be disabled or enabled for the result of renderChildren() calls within this ViewHelper
20
     * @see isChildrenEscapingEnabled()
21
     *
22
     * Note: If this is NULL the value of $this->escapingInterceptorEnabled is considered for backwards compatibility
23
     *
24
     * @var boolean
25
     * @api
26
     */
27
    protected $escapeChildren = false;
28
29
    /**
30
     * Specifies whether the escaping interceptors should be disabled or enabled for the render-result of this ViewHelper
31
     * @see isOutputEscapingEnabled()
32
     *
33
     * @var boolean
34
     * @api
35
     */
36
    protected $escapeOutput = false;
37
38
    /**
39
     * @return string
40
     */
41
    public function render()
42
    {
43
        return '{' . $this->renderChildren() . '}';
44
    }
45
46
}