You are here

public function MemberMetadata::isProtected in Plug 7

Returns whether this member is protected.

Parameters

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

Return value

bool

File

lib/Symfony/validator/Symfony/Component/Validator/Mapping/MemberMetadata.php, line 166

Class

MemberMetadata
Stores all metadata needed for validating a class property.

Namespace

Symfony\Component\Validator\Mapping

Code

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