Reflection ReflectionProperty::getModifiers
(PHP 5, PHP 7, PHP 8)
ReflectionProperty::getModifiers — 속성 수정자를 가져옵니다.
설명
public ReflectionProperty::getModifiers(): int
수정자를 가져옵니다.
매개변수
이 함수에는 매개변수가 없습니다.
반환 값
수정자의 숫자 표현입니다. 이러한 수정자의 실제 의미는 사전 정의된 상수에 설명되어 있습니다.
기타
- ReflectionProperty::isPrivate() - 속성이 비공개인지 확인
- Reflection::getModifierNames() - 수정자 이름을 가져옵니다.