Reflection ReflectionClass::getReflectionConstant
(PHP 7 >= 7.1.0, PHP 8)
ReflectionClass::getReflectionConstant — 클래스의 상수에 대한 ReflectionClassConstant를 가져옵니다.
설명
public ReflectionClass::getReflectionConstant(string $name
): ReflectionClassConstant|false
클래스 속성에 대한 ReflectionClassConstant를 가져옵니다.
매개변수
name
- 클래스 상수 이름.
반환 값
ReflectionClassConstant 또는 실패 시 false
입니다.
기타
- ReflectionClass::getReflectionConstants() - 클래스 상수를 가져옵니다.
- ReflectionClassConstant