- array_map: documentation ( source)
- var_dump: documentation ( source)
- get_declared_classes: documentation ( source)
- array_merge: documentation ( source)
- get_declared_traits: documentation ( source)
- array_filter: documentation ( source)
<?php
class Foo
{
private static $bar;
}
var_dump(array_merge(
[],
...array_map(
function ($symbol) {
return array_map(
function (\ReflectionProperty $property) {
return ($property->getDeclaringClass()->getName()) . '::$' . $property->getName();
},
array_filter(
(\ReflectionClass($symbol))->getMethods(),
function (\ReflectionProperty $property) {
return $property->isStatic();
}
)
);
},
array_merge(get_declared_classes(), get_declared_traits())
)
));