1分钟部署网站📞AI智能客服,大模型训练自有数据,简单好用,有效降低客服成本 广告
``` ReflectionClassConstant implements Reflector { /* 属性 */ public $name ; //类常量的名称。只读,在尝试编写时抛出ReflectionException public $class; //定义类常量的类的名称。只读,在尝试编写时抛出ReflectionException /* 方法 */ public __construct ( mixed $class , string $name ) //构造一个ReflectionClassConstant public static export ( mixed $class , string $name [, bool $return ] ) : string //导出 public getDeclaringClass ( void ) : ReflectionClass //获取声明类 public getDocComment ( void ) : string //获取文档注释 public getModifiers ( void ) : int //获取类常量修饰符 public getName ( void ) : string //获取常量的名称 public getValue ( void ) : mixed //获取值 public isPrivate ( void ) : bool //检查类常量是否为Private public isProtected ( void ) : bool //检查类常量是否为Protected public isPublic ( void ) : bool //检查类常量是否为public public __toString ( void ) : string //返回ReflectionClassConstant对象的字符串表示形式 } ```