You are here

public function FakeClassMetadata::addCustomPropertyMetadata in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/validator/Tests/Fixtures/FakeClassMetadata.php \Symfony\Component\Validator\Tests\Fixtures\FakeClassMetadata::addCustomPropertyMetadata()

File

vendor/symfony/validator/Tests/Fixtures/FakeClassMetadata.php, line 18

Class

FakeClassMetadata

Namespace

Symfony\Component\Validator\Tests\Fixtures

Code

public function addCustomPropertyMetadata($propertyName, $metadata) {
  if (!isset($this->members[$propertyName])) {
    $this->members[$propertyName] = array();
  }
  $this->members[$propertyName][] = $metadata;
}