Expression::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace EnergieProduction\Chart\Renderable;
4
5
use EnergieProduction\Chart\Contracts\Renderable;
6
7
class Expression implements Renderable {
8
9
	protected $render;
10
11
	/**
12
	 * [__construct description]
13
	 * @param \EnergieProduction\Chart\Contracts\Renderable $render
14
	 */
15
    public function __construct(Renderable $render)
16
    {
17
        $this->render = $render;
18
    }
19
20
    /**
21
     * [handle description]
22
     * @param  string $key
23
     * @param  mixed $content
24
     * @return array
25
     */
26
    public function handle($key, $content)
27
    {
28
        return $this->render->handle($key, "#!!" . $content . "!!#");
29
    }
30
}