mediatekformation

StaticMethodLoader
in package
implements LoaderInterface

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

Tags
author

Bernhard Schussek bschussek@gmail.com

Interfaces, Classes, Traits and Enums

LoaderInterface
Loads validation metadata into {@link ClassMetadata} instances.

Table of Contents

$methodName  : mixed
__construct()  : mixed
Creates a new loader.
loadClassMetadata()  : bool
Loads validation metadata into a {@link ClassMetadata} instance.

Properties

Methods

__construct()

Creates a new loader.

public __construct([string $methodName = 'loadValidatorMetadata' ]) : mixed
Parameters
$methodName : string = 'loadValidatorMetadata'

The name of the static method to call

Return values
mixed

loadClassMetadata()

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

public loadClassMetadata(ClassMetadata $metadata) : bool
Parameters
$metadata : ClassMetadata
Return values
bool

Whether the loader succeeded

Search results