package Default

 Methods

Adds the given strategy under the given name.

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

Parameters

$name

string

The name of the strategy to register.

$strategy

\Zend\Stdlib\Hydrator\Strategy\StrategyInterface

The strategy to register.

Returns

\Zend\Stdlib\Hydrator\StrategyEnabledInterface

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

\Zend\Stdlib\Hydrator\Strategy\StrategyInterface

Checks if the strategy with the given name exists.

hasStrategy(string $name) : boolean

Parameters

$name

string

The name of the strategy to check for.

Returns

boolean

Removes the strategy with the given name.

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

Parameters

$name

string

The name of the strategy to remove.

Returns

\Zend\Stdlib\Hydrator\StrategyEnabledInterface