/**
  * Return with the parameter type (string, int, ..., class name)
  * @param ReflectionParameter $parameter
  * @return null|string 
  */
 private function getParameterType(ReflectionParameter $parameter)
 {
     if ($parameter->getClass()) {
         return $parameter->getClass()->getName();
     }
     $matches = null;
     if (preg_match('/@param (\\S*) \\$' . $parameter->getName() . '/m', $this->reflMethod->getDocComment(), $matches)) {
         $types = preg_split('/|/', $matches[1]);
         $type = array_pop($types);
         return empty($type) ? null : $type;
     }
     return null;
 }