lithium\test\Mocker::_methodModifiers()
Will determine what method mofifiers of a method.
For instance: 'public static' or 'private abstract'
Parameters
-
ReflectionMethod
$method
Returns
stringSource
protected static function _methodModifiers(ReflectionMethod $method) {
$modifierKey = $method->getModifiers();
$modifierArray = Reflection::getModifierNames($modifierKey);
$modifiers = implode(' ', $modifierArray);
return str_replace(['private', 'protected'], 'public', $modifiers);
}