return $a;
} /**
* @return array
*/
public static function castClass(\ReflectionClass
$c, array
$a, Stub
$stub, bool
$isNested, int
$filter = 0
) { $prefix = Caster::PREFIX_VIRTUAL;
if ($n = \Reflection::
getModifierNames($c->
getModifiers())) { $a[$prefix.'modifiers'
] =
implode(' ',
$n);
} self::
addMap($a,
$c,
[ 'extends' => 'getParentClass',
'implements' => 'getInterfaceNames',
'constants' => 'getReflectionConstants',
]);
foreach ($c->
getProperties() as $n) { $a[$prefix.'properties'
][$n->name
] =
$n;
}