FooBarRenderer::render()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 1
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