Completed
Push — master ( 48d863...66a52d )
by Timothy
48s
created

FooBarRenderer::render()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 8
rs 9.4285
cc 2
eloc 4
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