class BlackHoleMetadataFactory implements MetadataFactoryInterface
Metadata factory that does not store metadata.
This implementation is useful if you want to validate values against constraints only and you don't need to add constraints to classes and properties.
MetadataInterface | getMetadataFor(mixed $value) Returns the metadata for the given value. | |
bool | hasMetadataFor(mixed $value) Returns whether the class is able to return metadata for the given value. |
Returns the metadata for the given value.
mixed | $value | Some value |
MetadataInterface | The metadata for the value |
NoSuchMetadataException | If no metadata exists for the given value |
Returns whether the class is able to return metadata for the given value.
mixed | $value | Some value |
bool | Whether metadata can be returned for that value |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Validator/Mapping/Factory/BlackHoleMetadataFactory.html