PHP Class Psr7Middlewares\Transformers\Resolver

Inheritance: implements Psr7Middlewares\Transformers\ResolverInterface
Show file Open project: oscarotero/psr7-middlewares

Protected Properties

Property Type Description
$transformers

Public Methods

Method Description
add ( string $id, callable $resolver ) Add a new transformer.
resolve ( string $id ) : callable | null Resolves the id and returns a transformer or null.

Method Details

add() public method

Add a new transformer.
public add ( string $id, callable $resolver )
$id string
$resolver callable

resolve() public method

Resolves the id and returns a transformer or null.
public resolve ( string $id ) : callable | null
$id string
return callable | null

Property Details

$transformers protected property

protected $transformers