BlackHoleMetadataFactory

BlackHoleMetadataFactory

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.

Methods

MetadataInterface getMetadataFor(mixed $value)

Returns the metadata for the given value.

bool hasMetadataFor(mixed $