@@ 59-63 (lines=5) @@ | ||
56 | if($property instanceof \ReflectionProperty){ |
|
57 | $property->setAccessible(true); |
|
58 | $value=$property->getValue($this->instance); |
|
59 | if(isset($this->values[$index])){ |
|
60 | $value= $this->values[$index]($value,$this->instance,$index); |
|
61 | }else{ |
|
62 | $value=$this->_getDefaultValue($property->getName(),$value, $index); |
|
63 | } |
|
64 | }else{ |
|
65 | if(\is_callable($property)) |
|
66 | $value=$property($this->instance); |
|
@@ 70-76 (lines=7) @@ | ||
67 | elseif(\is_array($property)){ |
|
68 | $values=\array_map(function($v) use ($index){return $this->_getValue($v, $index);}, $property); |
|
69 | $value=\implode("", $values); |
|
70 | }else{ |
|
71 | if(isset($this->values[$index])){ |
|
72 | $value= $this->values[$index]($property,$this->instance,$index); |
|
73 | }else{ |
|
74 | $value=$property; |
|
75 | } |
|
76 | } |
|
77 | } |
|
78 | if(isset($this->afterCompile[$index])){ |
|
79 | if(\is_callable($this->afterCompile[$index])){ |