php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
ReflectionParameter Class Reference
Inheritance diagram for ReflectionParameter:
Reflector Stringable

Public Member Functions

 __construct ($function, int|string $param)
 
 __toString ()
 
 getName ()
 
 isPassedByReference ()
 
 canBePassedByValue ()
 
 getDeclaringFunction ()
 
 getDeclaringClass ()
 
 getClass ()
 
 hasType ()
 
 getType ()
 
 isArray ()
 
 isCallable ()
 
 allowsNull ()
 
 getPosition ()
 
 isOptional ()
 
 isDefaultValueAvailable ()
 
 getDefaultValue ()
 
 isDefaultValueConstant ()
 
 getDefaultValueConstantName ()
 
 isVariadic ()
 
 isPromoted ()
 
 getAttributes (?string $name=null, int $flags=0)
 

Data Fields

string $name
 

Detailed Description

@not-serializable

Definition at line 638 of file php_reflection.stub.php.

Constructor & Destructor Documentation

◆ __construct()

ReflectionParameter::__construct ( $function,
int|string $param )
Parameters
string | array | object$function

Definition at line 646 of file php_reflection.stub.php.

Member Function Documentation

◆ __toString()

ReflectionParameter::__toString ( )

Implements Stringable.

Definition at line 648 of file php_reflection.stub.php.

◆ allowsNull()

ReflectionParameter::allowsNull ( )

@tentative-return-type

Definition at line 690 of file php_reflection.stub.php.

◆ canBePassedByValue()

ReflectionParameter::canBePassedByValue ( )

@tentative-return-type

Definition at line 657 of file php_reflection.stub.php.

◆ getAttributes()

ReflectionParameter::getAttributes ( ?string $name = null,
int $flags = 0 )

Definition at line 715 of file php_reflection.stub.php.

◆ getClass()

ReflectionParameter::getClass ( )

@tentative-return-type

Definition at line 669 of file php_reflection.stub.php.

◆ getDeclaringClass()

ReflectionParameter::getDeclaringClass ( )

@tentative-return-type

Definition at line 663 of file php_reflection.stub.php.

◆ getDeclaringFunction()

ReflectionParameter::getDeclaringFunction ( )

@tentative-return-type

Definition at line 660 of file php_reflection.stub.php.

◆ getDefaultValue()

ReflectionParameter::getDefaultValue ( )

@tentative-return-type

Definition at line 702 of file php_reflection.stub.php.

◆ getDefaultValueConstantName()

ReflectionParameter::getDefaultValueConstantName ( )

@tentative-return-type

Definition at line 708 of file php_reflection.stub.php.

◆ getName()

ReflectionParameter::getName ( )

@tentative-return-type

Definition at line 651 of file php_reflection.stub.php.

◆ getPosition()

ReflectionParameter::getPosition ( )

@tentative-return-type

Definition at line 693 of file php_reflection.stub.php.

◆ getType()

ReflectionParameter::getType ( )

@tentative-return-type

Definition at line 675 of file php_reflection.stub.php.

◆ hasType()

ReflectionParameter::hasType ( )

@tentative-return-type

Definition at line 672 of file php_reflection.stub.php.

◆ isArray()

ReflectionParameter::isArray ( )

@tentative-return-type

Definition at line 681 of file php_reflection.stub.php.

◆ isCallable()

ReflectionParameter::isCallable ( )

@tentative-return-type

Definition at line 687 of file php_reflection.stub.php.

◆ isDefaultValueAvailable()

ReflectionParameter::isDefaultValueAvailable ( )

@tentative-return-type

Definition at line 699 of file php_reflection.stub.php.

◆ isDefaultValueConstant()

ReflectionParameter::isDefaultValueConstant ( )

@tentative-return-type

Definition at line 705 of file php_reflection.stub.php.

◆ isOptional()

ReflectionParameter::isOptional ( )

@tentative-return-type

Definition at line 696 of file php_reflection.stub.php.

◆ isPassedByReference()

ReflectionParameter::isPassedByReference ( )

@tentative-return-type

Definition at line 654 of file php_reflection.stub.php.

◆ isPromoted()

ReflectionParameter::isPromoted ( )

Definition at line 713 of file php_reflection.stub.php.

◆ isVariadic()

ReflectionParameter::isVariadic ( )

@tentative-return-type

Definition at line 711 of file php_reflection.stub.php.

Field Documentation

◆ $name

string ReflectionParameter::$name

Definition at line 640 of file php_reflection.stub.php.


The documentation for this class was generated from the following file: