Laracon EU Online 2021

The ReflectionClassConstant class

(PHP 7 >= 7.1.0)

简介

The ReflectionClassConstant class reports information about a class constant.

类摘要

ReflectionClassConstant implements Reflector {
/* 属性 */
public $name ;
public $class ;
/* 方法 */
public __construct ( mixed $class , string $name )
public static export ( mixed $class , string $name [, bool $return ] ) : string
public getDocComment ( ) : string
public getModifiers ( ) : int
public getName ( ) : string
public getValue ( ) : mixed
public isPrivate ( ) : bool
public isProtected ( ) : bool
public isPublic ( ) : bool
public __toString ( ) : string
}

属性

name

Name of the class constant. Read-only, throws ReflectionException in attempt to write.

class

Name of the class where the class constant is defined. Read-only, throws ReflectionException in attempt to write.

Table of Contents

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top