InigoRenderer   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 27
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A render() 0 4 1
1
<?php
2
3
namespace Kaloa\Renderer;
4
5
use Kaloa\Renderer\Inigo\Parser;
6
7
/**
8
 *
9
 */
10
final class InigoRenderer implements RendererInterface
11
{
12
    /**
13
     * @var Parser
14
     */
15
    private $parser = null;
16
17
    /**
18
     *
19
     * @param Config $config
20
     */
21 17
    public function __construct(Config $config)
22
    {
23 17
        $this->parser = new Parser();
24 17
        $this->parser->addDefaultHandlers($config);
25 17
    }
26
27
    /**
28
     *
29
     * @param  string $input
30
     * @return string
31
     */
32 17
    public function render($input)
33
    {
34 17
        return $this->parser->parse($input);
35
    }
36
}
37