Expression   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A handle() 0 4 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
}