Exemplo n.º 1
0
 /**
  * Returns this pointer bound to closure.
  *
  * @return null
  */
 public function getClosureThis()
 {
     return PHP_VERSION_ID >= 50400 ? parent::getClosureThis() : null;
 }
 /**
  * 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);
 }
 /**
  * Returns if the function/method is variadic.
  *
  * @return null
  */
 public function isVariadic()
 {
     return PHP_VERSION_ID >= 50600 ? parent::isVariadic() : null;
 }