/**
  * Returns an array of reflection parameter instances from the passed reflection method.
  *
  * @param \AppserverIo\Lang\Reflection\ReflectionMethod $reflectionMethod The reflection method to return the parameters for
  *
  * @return array An array with ReflectionParameter instances
  */
 public static function fromReflectionMethod(ReflectionMethod $reflectionMethod)
 {
     // initialize the array for the reflection parameters
     $reflectionParameters = array();
     // load the reflection parameters and initialize the array with the reflection parameters
     $phpReflectionMethod = $reflectionMethod->toPhpReflectionMethod();
     foreach ($phpReflectionMethod->getParameters() as $phpReflectionParameter) {
         $reflectionParameters[$phpReflectionParameter->getName()] = ReflectionParameter::fromPhpReflectionParameter($phpReflectionParameter);
     }
     // return the array with the initialized reflection parameters
     return $reflectionParameters;
 }