/**
  * Returns the declaring function reflection.
  *
  * @return \TokenReflection\Php\ReflectionFunction|\TokenReflection\Php\ReflectionMethod
  */
 public function getDeclaringFunction()
 {
     $class = $this->getDeclaringClass();
     $function = parent::getDeclaringFunction();
     return $class ? $class->getMethod($function->getName()) : ReflectionFunction::create($function, $this->broker);
 }