Passed
Push — master ( 08368b...d03553 )
by Sebastian
02:27
created

VariableInfo_Renderer_String_Callable::_render()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 16
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 16
rs 10
cc 2
nc 2
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AppUtils;
6
7
class VariableInfo_Renderer_String_Callable extends VariableInfo_Renderer_String
8
{
9
    protected function _render()
10
    {
11
        $string = '';
12
        
13
        if(is_string($this->value[0])) 
14
        {
15
            $string .= $this->value[0].'::';
16
        } 
17
        else 
18
        {
19
            $string .= get_class($this->value[0]).'->';
20
        }
21
        
22
        $string .= $this->value[1].'()';
23
        
24
        return $string;
25
    }
26
}
27