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对象的字符串表示形式 } ```