You are here

interface MetadataFactoryInterface in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/validator/MetadataFactoryInterface.php \Symfony\Component\Validator\MetadataFactoryInterface
  2. 8 vendor/symfony/validator/Mapping/Factory/MetadataFactoryInterface.php \Symfony\Component\Validator\Mapping\Factory\MetadataFactoryInterface
Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/MetadataFactoryInterface.php \Symfony\Component\Validator\MetadataFactoryInterface

Returns {@link MetadataInterface} instances for values.

@author Bernhard Schussek <bschussek@gmail.com>

Hierarchy

Expanded class hierarchy of MetadataFactoryInterface

All classes that implement MetadataFactoryInterface

Deprecated

since version 2.5, to be removed in 3.0. Use {@link Mapping\Factory\MetadataFactoryInterface} instead.

12 files declare their use of MetadataFactoryInterface
Abstract2Dot5ApiTest.php in vendor/symfony/validator/Tests/Validator/Abstract2Dot5ApiTest.php
AbstractLegacyApiTest.php in vendor/symfony/validator/Tests/Validator/AbstractLegacyApiTest.php
FakeMetadataFactory.php in vendor/symfony/validator/Tests/Fixtures/FakeMetadataFactory.php
LegacyExecutionContext.php in vendor/symfony/validator/Context/LegacyExecutionContext.php
LegacyExecutionContextFactory.php in vendor/symfony/validator/Context/LegacyExecutionContextFactory.php

... See full list

File

vendor/symfony/validator/MetadataFactoryInterface.php, line 22

Namespace

Symfony\Component\Validator
View source
interface MetadataFactoryInterface {

  /**
   * Returns the metadata for the given value.
   *
   * @param mixed $value Some value
   *
   * @return MetadataInterface The metadata for the value
   *
   * @throws Exception\NoSuchMetadataException If no metadata exists for the given value
   */
  public function getMetadataFor($value);

  /**
   * Returns whether the class is able to return metadata for the given value.
   *
   * @param mixed $value Some value
   *
   * @return bool Whether metadata can be returned for that value
   */
  public function hasMetadataFor($value);

}

Members

Namesort descending Modifiers Type Description Overrides
MetadataFactoryInterface::getMetadataFor public function Returns the metadata for the given value. 5
MetadataFactoryInterface::hasMetadataFor public function Returns whether the class is able to return metadata for the given value. 5