lithium\analysis\Inspector::_modifiers()
Helper method to determine if a class applies to a list of modifiers.
Parameters
-
string
$inspector
ReflectionClass instance.
-
array|string
$list
List of modifiers to test.
Returns
booleanTest result.
Source
protected static function _modifiers($inspector, $list = []) {
$list = $list ?: ['public', 'private', 'protected', 'abstract', 'final', 'static'];
return array_filter($list, function($modifier) use ($inspector) {
$method = 'is' . ucfirst($modifier);
return (method_exists($inspector, $method) && $inspector->{$method}());
});
}