lithium\test\Mocker::_methodModifiers()

protected static method

Will determine what method mofifiers of a method.

For instance: 'public static' or 'private abstract'

Parameters

  • ReflectionMethod $method

Returns

string

Source

	protected static function _methodModifiers(ReflectionMethod $method) {
		$modifierKey = $method->getModifiers();
		$modifierArray = Reflection::getModifierNames($modifierKey);
		$modifiers = implode(' ', $modifierArray);
		return str_replace(array('private', 'protected'), 'public', $modifiers);
	}