class StaticMethodLoader implements LoaderInterface

Loads validation metadata by calling a static method on the loaded class.

Methods

__construct(string $methodName = 'loadValidatorMetadata')

Creates a new loader.

bool
loadClassMetadata(ClassMetadata $metadata)

Loads validation metadata into a {@link ClassMetadata} instance.

Details

at line line 31
__construct(string $methodName = 'loadValidatorMetadata')

Creates a new loader.

Parameters

string $methodName The name of the static method to call

at line line 39
bool loadClassMetadata(ClassMetadata $metadata)

Loads validation metadata into a {@link ClassMetadata} instance.

Parameters

ClassMetadata $metadata

Return Value

bool Whether the loader succeeded