You are here

public function StrategyEnabledInterface::addStrategy in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-hydrator/src/StrategyEnabledInterface.php \Zend\Hydrator\StrategyEnabledInterface::addStrategy()

Adds the given strategy under the given name.

Parameters

string $name The name of the strategy to register.:

Strategy\StrategyInterface $strategy The strategy to register.:

Return value

self

1 method overrides StrategyEnabledInterface::addStrategy()
AbstractHydrator::addStrategy in vendor/zendframework/zend-hydrator/src/AbstractHydrator.php
Adds the given strategy under the given name.

File

vendor/zendframework/zend-hydrator/src/StrategyEnabledInterface.php, line 21

Class

StrategyEnabledInterface

Namespace

Zend\Hydrator

Code

public function addStrategy($name, Strategy\StrategyInterface $strategy);