Documentation

BlackHoleMetadataFactory
in package
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.

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

Interfaces

MetadataFactoryInterface
Returns {@link \Symfony\Component\Validator\Mapping\MetadataInterface} instances for values.

Methods

getMetadataFor()  : MetadataInterface
Returns the metadata for the given value.
hasMetadataFor()  : bool
Returns whether the class is able to return metadata for the given value.

Methods

hasMetadataFor()

Returns whether the class is able to return metadata for the given value.

public hasMetadataFor(mixed $value) : bool
Parameters
$value : mixed
Return values
bool

        
On this page

Search results