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

Public Member Functions

 __construct (object|string $class, string $constant)
 
 __toString ()
 
 getName ()
 
 getValue ()
 
 isPublic ()
 
 isPrivate ()
 
 isProtected ()
 
 isFinal ()
 
 getModifiers ()
 
 getDeclaringClass ()
 
 getDocComment ()
 
 getAttributes (?string $name=null, int $flags=0)
 
 isEnumCase ()
 
 isDeprecated ()
 
 hasType ()
 
 getType ()
 

Data Fields

const int IS_PUBLIC = UNKNOWN
 
const int IS_PROTECTED = UNKNOWN
 
const int IS_PRIVATE = UNKNOWN
 
const int IS_FINAL = UNKNOWN
 
string $name
 
string $class
 

Detailed Description

@not-serializable

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

Constructor & Destructor Documentation

◆ __construct()

ReflectionClassConstant::__construct ( object|string $class,
string $constant )

Reimplemented in ReflectionEnumBackedCase, and ReflectionEnumUnitCase.

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

Member Function Documentation

◆ __toString()

ReflectionClassConstant::__toString ( )

Implements Stringable.

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

◆ getAttributes()

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

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

◆ getDeclaringClass()

ReflectionClassConstant::getDeclaringClass ( )

@tentative-return-type

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

◆ getDocComment()

ReflectionClassConstant::getDocComment ( )

@tentative-return-type

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

◆ getModifiers()

ReflectionClassConstant::getModifiers ( )

@tentative-return-type

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

◆ getName()

ReflectionClassConstant::getName ( )

@tentative-return-type

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

◆ getType()

ReflectionClassConstant::getType ( )

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

◆ getValue()

ReflectionClassConstant::getValue ( )

@tentative-return-type

Reimplemented in ReflectionEnumUnitCase.

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

◆ hasType()

ReflectionClassConstant::hasType ( )

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

◆ isDeprecated()

ReflectionClassConstant::isDeprecated ( )

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

◆ isEnumCase()

ReflectionClassConstant::isEnumCase ( )

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

◆ isFinal()

ReflectionClassConstant::isFinal ( )

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

◆ isPrivate()

ReflectionClassConstant::isPrivate ( )

@tentative-return-type

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

◆ isProtected()

ReflectionClassConstant::isProtected ( )

@tentative-return-type

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

◆ isPublic()

ReflectionClassConstant::isPublic ( )

@tentative-return-type

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

Field Documentation

◆ $class

string ReflectionClassConstant::$class

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

◆ $name

string ReflectionClassConstant::$name

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

◆ IS_FINAL

const int ReflectionClassConstant::IS_FINAL = UNKNOWN

@cvalue ZEND_ACC_FINAL

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

◆ IS_PRIVATE

const int ReflectionClassConstant::IS_PRIVATE = UNKNOWN

@cvalue ZEND_ACC_PRIVATE

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

◆ IS_PROTECTED

const int ReflectionClassConstant::IS_PROTECTED = UNKNOWN

@cvalue ZEND_ACC_PROTECTED

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

◆ IS_PUBLIC

const int ReflectionClassConstant::IS_PUBLIC = UNKNOWN

@cvalue ZEND_ACC_PUBLIC

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


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