The ReflectionConstant class

Introduction

The ReflectionConstant class reports information about a global constant.

Class synopsis

final ReflectionConstant
implements Reflector
/* Properties */
public string $name;
/* Methods */
public __construct(string $name)
public ReflectionExtensionnull getExtension()
public stringfalse getExtensionName()
public stringfalse getFileName()
public string getName()
public string getNamespaceName()
public string getShortName()
public mixed getValue()
public bool isDeprecated()
public string __toString()

Properties

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

See Also

  • ReflectionClassConstant
Table of Contents