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

Public Member Functions

 __construct (object|string $class, string $property)
 
 __toString ()
 
 getName ()
 
 getValue (?object $object=null)
 
 setValue (mixed $objectOrValue, mixed $value=UNKNOWN)
 
 getRawValue (object $object)
 
 setRawValue (object $object, mixed $value)
 
 setRawValueWithoutLazyInitialization (object $object, mixed $value)
 
 skipLazyInitialization (object $object)
 
 isLazy (object $object)
 
 isInitialized (?object $object=null)
 
 isPublic ()
 
 isPrivate ()
 
 isProtected ()
 
 isPrivateSet ()
 
 isProtectedSet ()
 
 isStatic ()
 
 isReadOnly ()
 
 isDefault ()
 
 isDynamic ()
 
 isAbstract ()
 
 isVirtual ()
 
 isPromoted ()
 
 getModifiers ()
 
 getDeclaringClass ()
 
 getDocComment ()
 
 setAccessible (bool $accessible)
 
 getType ()
 
 getSettableType ()
 
 hasType ()
 
 hasDefaultValue ()
 
 getDefaultValue ()
 
 getAttributes (?string $name=null, int $flags=0)
 
 hasHooks ()
 
 getHooks ()
 
 hasHook (PropertyHookType $type)
 
 getHook (PropertyHookType $type)
 
 isFinal ()
 

Data Fields

const int IS_STATIC = UNKNOWN
 
const int IS_READONLY = UNKNOWN
 
const int IS_PUBLIC = UNKNOWN
 
const int IS_PROTECTED = UNKNOWN
 
const int IS_PRIVATE = UNKNOWN
 
const int IS_ABSTRACT = UNKNOWN
 
const int IS_PROTECTED_SET = UNKNOWN
 
const int IS_PRIVATE_SET = UNKNOWN
 
const int IS_VIRTUAL = UNKNOWN
 
const int IS_FINAL = UNKNOWN
 
string $name
 
string $class
 

Detailed Description

@not-serializable

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

Constructor & Destructor Documentation

◆ __construct()

ReflectionProperty::__construct ( object|string $class,
string $property )

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

Member Function Documentation

◆ __toString()

ReflectionProperty::__toString ( )

Implements Stringable.

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

◆ getAttributes()

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

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

◆ getDeclaringClass()

ReflectionProperty::getDeclaringClass ( )

@tentative-return-type

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

◆ getDefaultValue()

ReflectionProperty::getDefaultValue ( )

@tentative-return-type

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

◆ getDocComment()

ReflectionProperty::getDocComment ( )

@tentative-return-type

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

◆ getHook()

ReflectionProperty::getHook ( PropertyHookType $type)

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

◆ getHooks()

ReflectionProperty::getHooks ( )
Returns
array<string, ReflectionMethod>

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

◆ getModifiers()

ReflectionProperty::getModifiers ( )

@tentative-return-type

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

◆ getName()

ReflectionProperty::getName ( )

@tentative-return-type

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

◆ getRawValue()

ReflectionProperty::getRawValue ( object $object)

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

◆ getSettableType()

ReflectionProperty::getSettableType ( )

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

◆ getType()

ReflectionProperty::getType ( )

@tentative-return-type

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

◆ getValue()

ReflectionProperty::getValue ( ?object $object = null)

@tentative-return-type

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

◆ hasDefaultValue()

ReflectionProperty::hasDefaultValue ( )

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

◆ hasHook()

ReflectionProperty::hasHook ( PropertyHookType $type)

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

◆ hasHooks()

ReflectionProperty::hasHooks ( )

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

◆ hasType()

ReflectionProperty::hasType ( )

@tentative-return-type

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

◆ isAbstract()

ReflectionProperty::isAbstract ( )

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

◆ isDefault()

ReflectionProperty::isDefault ( )

@tentative-return-type

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

◆ isDynamic()

ReflectionProperty::isDynamic ( )

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

◆ isFinal()

ReflectionProperty::isFinal ( )

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

◆ isInitialized()

ReflectionProperty::isInitialized ( ?object $object = null)

@tentative-return-type

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

◆ isLazy()

ReflectionProperty::isLazy ( object $object)

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

◆ isPrivate()

ReflectionProperty::isPrivate ( )

@tentative-return-type

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

◆ isPrivateSet()

ReflectionProperty::isPrivateSet ( )

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

◆ isPromoted()

ReflectionProperty::isPromoted ( )

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

◆ isProtected()

ReflectionProperty::isProtected ( )

@tentative-return-type

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

◆ isProtectedSet()

ReflectionProperty::isProtectedSet ( )

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

◆ isPublic()

ReflectionProperty::isPublic ( )

@tentative-return-type

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

◆ isReadOnly()

ReflectionProperty::isReadOnly ( )

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

◆ isStatic()

ReflectionProperty::isStatic ( )

@tentative-return-type

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

◆ isVirtual()

ReflectionProperty::isVirtual ( )

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

◆ setAccessible()

ReflectionProperty::setAccessible ( bool $accessible)

@tentative-return-type

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

◆ setRawValue()

ReflectionProperty::setRawValue ( object $object,
mixed $value )

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

◆ setRawValueWithoutLazyInitialization()

ReflectionProperty::setRawValueWithoutLazyInitialization ( object $object,
mixed $value )

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

◆ setValue()

ReflectionProperty::setValue ( mixed $objectOrValue,
mixed $value = UNKNOWN )

@tentative-return-type

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

◆ skipLazyInitialization()

ReflectionProperty::skipLazyInitialization ( object $object)

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

Field Documentation

◆ $class

string ReflectionProperty::$class

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

◆ $name

string ReflectionProperty::$name

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

◆ IS_ABSTRACT

const int ReflectionProperty::IS_ABSTRACT = UNKNOWN

@cvalue ZEND_ACC_ABSTRACT

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

◆ IS_FINAL

const int ReflectionProperty::IS_FINAL = UNKNOWN

@cvalue ZEND_ACC_FINAL

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

◆ IS_PRIVATE

const int ReflectionProperty::IS_PRIVATE = UNKNOWN

@cvalue ZEND_ACC_PRIVATE

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

◆ IS_PRIVATE_SET

const int ReflectionProperty::IS_PRIVATE_SET = UNKNOWN

@cvalue ZEND_ACC_PRIVATE_SET

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

◆ IS_PROTECTED

const int ReflectionProperty::IS_PROTECTED = UNKNOWN

@cvalue ZEND_ACC_PROTECTED

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

◆ IS_PROTECTED_SET

const int ReflectionProperty::IS_PROTECTED_SET = UNKNOWN

@cvalue ZEND_ACC_PROTECTED_SET

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

◆ IS_PUBLIC

const int ReflectionProperty::IS_PUBLIC = UNKNOWN

@cvalue ZEND_ACC_PUBLIC

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

◆ IS_READONLY

const int ReflectionProperty::IS_READONLY = UNKNOWN

@cvalue ZEND_ACC_READONLY

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

◆ IS_STATIC

const int ReflectionProperty::IS_STATIC = UNKNOWN

@cvalue ZEND_ACC_STATIC

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

◆ IS_VIRTUAL

const int ReflectionProperty::IS_VIRTUAL = UNKNOWN

@cvalue ZEND_ACC_VIRTUAL

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


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