public function MemberMetadata::isProtected

Returns whether this member is protected

Parameters

object|string $objectOrClassName The object or the class name:

Return value

Boolean

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Mapping/MemberMetadata.php, line 142

Class

MemberMetadata

Namespace

Symfony\Component\Validator\Mapping

Code

public function isProtected($objectOrClassName) {
  return $this
    ->getReflectionMember($objectOrClassName)
    ->isProtected();
}