You are here

public function ClassMetadata::hasPropertyMetadata in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Mapping/ClassMetadata.php \Symfony\Component\Validator\Mapping\ClassMetadata::hasPropertyMetadata()

Check if there's any metadata attached to the given named property.

Parameters

string $property The property name.:

Return value

bool

Overrides PropertyMetadataContainerInterface::hasPropertyMetadata

1 call to ClassMetadata::hasPropertyMetadata()
ClassMetadata::hasMemberMetadatas in vendor/symfony/validator/Mapping/ClassMetadata.php
Returns true if metadatas of members is present for the given property.

File

vendor/symfony/validator/Mapping/ClassMetadata.php, line 420

Class

ClassMetadata
Default implementation of {@link ClassMetadataInterface}.

Namespace

Symfony\Component\Validator\Mapping

Code

public function hasPropertyMetadata($property) {
  return array_key_exists($property, $this->members);
}