| @@ 487-495 (lines=9) @@ | ||
| 484 | continue; |
|
| 485 | } |
|
| 486 | ||
| 487 | if ($property->isProtected()) { |
|
| 488 | $property->setAccessible(true); |
|
| 489 | $access = 'protected'; |
|
| 490 | } elseif ($property->isPrivate()) { |
|
| 491 | $property->setAccessible(true); |
|
| 492 | $access = 'private'; |
|
| 493 | } else { |
|
| 494 | $access = 'public'; |
|
| 495 | } |
|
| 496 | ||
| 497 | $value = $property->getValue($variable); |
|
| 498 | ||
| @@ 28-39 (lines=12) @@ | ||
| 25 | $reflection = new \ReflectionClass($variable); |
|
| 26 | // first show static values |
|
| 27 | foreach ($reflection->getProperties(\ReflectionProperty::IS_STATIC) as $property) { |
|
| 28 | if ($property->isPrivate()) { |
|
| 29 | if (!method_exists($property, 'setAccessible')) { |
|
| 30 | break; |
|
| 31 | } |
|
| 32 | $property->setAccessible(true); |
|
| 33 | $access = 'private'; |
|
| 34 | } elseif ($property->isProtected()) { |
|
| 35 | $property->setAccessible(true); |
|
| 36 | $access = 'protected'; |
|
| 37 | } else { |
|
| 38 | $access = 'public'; |
|
| 39 | } |
|
| 40 | ||
| 41 | $_ = $property->getValue(); |
|
| 42 | $output = KintParser::factory($_, '$' . $property->getName()); |
|