Methods

Adds the given strategy under the given name.

addStrategy(string $name, \Zend\Stdlib\Hydrator\Strategy\StrategyInterface $strategy) : \Zend\Stdlib\Hydrator\HydratorInterface

Parameters

$name

string

The name of the strategy to register.

$strategy

\Zend\Stdlib\Hydrator\Strategy\StrategyInterface

The strategy to register.

Returns

Gets the strategy with the given name.

getStrategy(string $name) : \Zend\Stdlib\Hydrator\Strategy\StrategyInterface

Parameters

$name

string

The name of the strategy to get.

Returns

Checks if the strategy with the given name exists.

hasStrategy(string $name) : bool

Parameters

$name

string

The name of the strategy to check for.

Returns

bool

Removes the strategy with the given name.

removeStrategy(string $name) : \Zend\Stdlib\Hydrator\HydratorInterface

Parameters

$name

string

The name of the strategy to remove.

Returns