ReflectionFunctionAbstract::__toString
ReflectionMethod::__construct
Reflection
PHP Manual
La classe ReflectionMethod
Introduction
La classe
ReflectionMethod
rapporte des informations sur une méthode.
Synopsis de la classe
ReflectionMethod
ReflectionMethod
extends
ReflectionFunctionAbstract
implements
Reflector
{
/* Constantes */
const
integer
ReflectionMethod::IS_STATIC
= 1
;
const
integer
ReflectionMethod::IS_PUBLIC
= 256
;
const
integer
ReflectionMethod::IS_PROTECTED
= 512
;
const
integer
ReflectionMethod::IS_PRIVATE
= 1024
;
const
integer
ReflectionMethod::IS_ABSTRACT
= 2
;
const
integer
ReflectionMethod::IS_FINAL
= 4
;
/* Propriétés */
public
$name
;
public
$class
;
/* Méthodes */
__construct
(
string
$class_or_method
[,
string
$name
] )
public
static
string
export
(
string
$class
,
string
$name
[,
bool
$return
= false
] )
public
ReflectionClass
getDeclaringClass
(
void
)
public
int
getModifiers
(
void
)
public
void
getPrototype
(
void
)
public
mixed
invoke
(
object
$object
,
string
$args
)
public
mixed
invokeArgs
(
string
$object
,
array
$args
)
public
bool
isAbstract
(
void
)
public
bool
isConstructor
(
void
)
public
bool
isDestructor
(
void
)
public
bool
isFinal
(
void
)
public
bool
isPrivate
(
void
)
public
bool
isProtected
(
void
)
public
bool
isPublic
(
void
)
public
bool
isStatic
(
void
)
public
void
setAccessible
(
bool
$accessible
)
public
string
__toString
(
void
)
/* Méthodes héritées */
final
private
void
ReflectionFunctionAbstract::__clone
(
void
)
public
string
ReflectionFunctionAbstract::getDocComment
(
void
)
public
int
ReflectionFunctionAbstract::getEndLine
(
void
)
public
ReflectionExtension
ReflectionFunctionAbstract::getExtension
(
void
)
public
string
ReflectionFunctionAbstract::getExtensionName
(
void
)
public
string
ReflectionFunctionAbstract::getFileName
(
void
)
public
string
ReflectionFunctionAbstract::getName
(
void
)
public
string
ReflectionFunctionAbstract::getNamespaceName
(
void
)
public
int
ReflectionFunctionAbstract::getNumberOfParameters
(
void
)
public
int
ReflectionFunctionAbstract::getNumberOfRequiredParameters
(
void
)
public
array
ReflectionFunctionAbstract::getParameters
(
void
)
public
string
ReflectionFunctionAbstract::getShortName
(
void
)
public
int
ReflectionFunctionAbstract::getStartLine
(
void
)
public
array
ReflectionFunctionAbstract::getStaticVariables
(
void
)
public
bool
ReflectionFunctionAbstract::inNamespace
(
void
)
public
bool
ReflectionFunctionAbstract::isClosure
(
void
)
public
bool
ReflectionFunctionAbstract::isDeprecated
(
void
)
public
bool
ReflectionFunctionAbstract::isInternal
(
void
)
public
bool
ReflectionFunctionAbstract::isUserDefined
(
void
)
public
bool
ReflectionFunctionAbstract::returnsReference
(
void
)
abstract
public
void
ReflectionFunctionAbstract::__toString
(
void
)
}
Propriétés
name
class
Constantes pré-définies
Type de nœuds ReflectionMethod
ReflectionMethod::IS_STATIC
ReflectionMethod::IS_PUBLIC
ReflectionMethod::IS_PROTECTED
ReflectionMethod::IS_PRIVATE
ReflectionMethod::IS_ABSTRACT
ReflectionMethod::IS_FINAL
Sommaire
ReflectionMethod::__construct
— Construit un nouvel objet ReflectionMethod
ReflectionMethod::export
— Exportation
ReflectionMethod::getDeclaringClass
— Récupère la déclaration de la classe
ReflectionMethod::getModifiers
— Récupère les modificateurs
ReflectionMethod::getPrototype
— Récupère le prototype
ReflectionMethod::invoke
— Invoque
ReflectionMethod::invokeArgs
— Invoque les arguments
ReflectionMethod::isAbstract
— Vérifie si la méthode est abstraite
ReflectionMethod::isConstructor
— Vérifie si la méthode est un constructeur
ReflectionMethod::isDestructor
— Vérifie si la méthode est un destructeur
ReflectionMethod::isFinal
— Vérifie si la méthode est finale
ReflectionMethod::isPrivate
— Vérifie si la méthode est privée
ReflectionMethod::isProtected
— Vérifie si la méthode est protégée
ReflectionMethod::isPublic
— Vérifie si la méthode est publique
ReflectionMethod::isStatic
— Vérifie si la méthode est statique
ReflectionMethod::setAccessible
— Définit l'accessibilité de la méthode
ReflectionMethod::__toString
— Récupère une représentation textuelle
ReflectionFunctionAbstract::__toString
ReflectionMethod::__construct
Reflection
PHP Manual