php8.5
Home/ Manual/ reflection / reflectionclassconstant/ ReflectionClassConstant::isProtected

ReflectionClassConstant::isProtected

PHP function Edit on GitHub ✎

(PHP 7 >= 7.1.0, PHP 8)

Checks if class constant is protected

Description

ReflectionClassConstant::isProtected(): bool

Checks if the class constant is protected.

Parameters Parameters

Return Values

true if the class constant is protected, otherwise false

See Also

  • ReflectionClassConstant::isFinal
  • ReflectionClassConstant::isPublic
  • ReflectionClassConstant::isPrivate

Source: reference/reflection/reflectionclassconstant/isprotected.xml · from the official PHP manual (php/doc-en)