/**
* Returns the method's visibility string found by the reflection service
* Note: If the reflection service has no information about this method,
* 'public' is returned.
*
* @return string One of 'public', 'protected' or 'private'
*/
protected function getMethodVisibilityString()
{
if ($this->reflectionService->isMethodProtected($this->fullOriginalClassName, $this->methodName)) {
return 'protected';
} elseif ($this->reflectionService->isMethodPrivate($this->fullOriginalClassName, $this->methodName)) {
return 'private';
}
return 'public';
}