La classe ReflectionFunction

(PHP 5, PHP 7)

Introduction

La classe ReflectionFunction rapporte des informations sur une fonction.

Synopsis de la classe

ReflectionFunction extends ReflectionFunctionAbstract implements Reflector {
/* Constantes */
const int IS_DEPRECATED = 262144 ;
/* Propriétés */
public $name ;
/* Méthodes */
public __construct ( Closure|string $function )
public static export ( string $name , string $return = ? ) : string
public getClosure ( ) : Closure
public invoke ( mixed ...$args ) : mixed
public invokeArgs ( array $args ) : mixed
public isDisabled ( ) : bool
public __toString ( ) : string
/* Méthodes héritées */
final private ReflectionFunctionAbstract::__clone ( ) : void
public ReflectionFunctionAbstract::getFileName ( ) : string|false
abstract public ReflectionFunctionAbstract::__toString ( ) : void
}

Propriétés

name

Nom de la fonction. En lecture seule, émets ReflectionException lors d'une tentative d'écriture.

Constantes pré-définies

Modificateurs de ReflectionFunction

ReflectionFunction::IS_DEPRECATED

Indique une fonction obsolète.

Sommaire