ReflectionProperty::isProtected
PHP Manual
PHP Manual»ReflectionProperty»ReflectionProperty::isProtected

ReflectionProperty::isProtected

(PHP 5, PHP 7, PHP 8)

ReflectionProperty::isProtectedChecks if property is protected

Опис

public function ReflectionProperty::isProtected(): bool

Checks whether the property is protected.

Параметри

У цієї функції немає параметрів.

Значення, що повертаються

true if the property is protected, false otherwise.

Зауваження: Note this refers only to the main visibility, and not to a set-visibility, if specified.

Прогляньте також

To Top