public function MemberMetadata::isPublic in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Mapping/MemberMetadata.php \Symfony\Component\Validator\Mapping\MemberMetadata::isPublic()
Returns whether this member is public.
Parameters
object|string $objectOrClassName The object or the class name:
Return value
bool
File
- vendor/
symfony/ validator/ Mapping/ MemberMetadata.php, line 156
Class
- MemberMetadata
- Stores all metadata needed for validating a class property.
Namespace
Symfony\Component\Validator\MappingCode
public function isPublic($objectOrClassName) {
return $this
->getReflectionMember($objectOrClassName)
->isPublic();
}