Reflection ReflectionClassConstant::getAttributes
(PHP 8)
ReflectionClassConstant::getAttributes — 속성 가져오기
설명
public ReflectionClassConstant::getAttributes(?string $name
= null
, int $flags
= 0): array
이 클래스 상수에 선언된 모든 속성을 ReflectionAttribute의 배열로 반환합니다.
매개변수
name
flags
반환 값
ReflectionAttribute 개체로서의 속성 배열입니다.
기타
- ReflectionClass::getAttributes() - 속성 가져오기
- ReflectionFunctionAbstract::getAttributes() - 속성 가져오기
- ReflectionParameter::getAttributes() - 속성 가져오기
- ReflectionProperty::getAttributes() - 속성 가져오기