Example #1
0
 public function getReflection(callable $function)
 {
     return FunctionReflection::fromCallable($function);
 }
 /**
  * @return MethodReflection | FunctionReflection
  */
 public function getDeclaringFunction()
 {
     return ($ref = parent::getDeclaringFunction()) instanceof ReflectionMethod ? MethodReflection::import($ref) : FunctionReflection::import($ref);
 }