FooBarRenderer   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A render() 0 8 2
1
<?php
2
3
namespace AbacaphiliacTest\PsrLog4Php;
4
5
class FooBarRenderer implements \LoggerRenderer
6
{
7
    /**
8
     * Renders the entity passed as <var>input</var> to a string.
9
     * @param mixed $input The entity to render.
10
     * @return string The rendered string.
11
     */
12
    public function render($input)
13
    {
14
        if ($input instanceof FooBar) {
15
            return $input->getValue();
16
        }
17
        
18
        return '';
19
    }
20
}
21