public function MemberMetadata::isPrivate

Returns whether this member is private

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 154

Class

MemberMetadata

Namespace

Symfony\Component\Validator\Mapping

Code

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