TemplatingJson   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A render() 0 5 1
1
<?php
2
3
namespace Structural\Decorator;
4
5
class TemplatingJson extends Decorator
6
{
7
    public function render()
8
    {
9
        $data = $this->origin->render();
10
        return json_encode($data);
11
    }
12
}
13