Reflection
PHP Manual

کلاس ReflectionParameter

Introduction

کلاس ReflectionParameter اطلاعاتی درباره پارامترهای متد یا تابع باز می‌گرداند.

برای بررسی پارامترهای تابع ابتدا یک نمونه از ReflectionFunction یا ReflectionMethod بسازید و از ReflectionFunctionAbstract::getParameters() آنها برای دستیابی به آرایه پارامترها بهره برید.

Class synopsis

ReflectionParameter implements Reflector {
/* Properties */
public $name ;
/* Methods */
public bool allowsNull ( void )
final private void __clone ( void )
__construct ( string $function , string $parameter )
public static string export ( string $function , string $parameter [, bool $return ] )
public ReflectionClass getClass ( void )
public ReflectionClass getDeclaringClass ( void )
public ReflectionFunction getDeclaringFunction ( void )
public mixed getDefaultValue ( void )
public string getName ( void )
public int getPosition ( void )
public bool isArray ( void )
public bool isDefaultValueAvailable ( void )
public bool isOptional ( void )
public bool isPassedByReference ( void )
public string __toString ( void )
}

Properties

name

Prop description

Table of Contents


Reflection
PHP Manual