47 lines
1.3 KiB
PHP
47 lines
1.3 KiB
PHP
<?php
|
|
/**
|
|
* Zend Framework (http://framework.zend.com/)
|
|
*
|
|
* @link http://github.com/zendframework/zf2 for the canonical source repository
|
|
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
|
|
* @license http://framework.zend.com/license/new-bsd New BSD License
|
|
*/
|
|
|
|
namespace Zend\Hydrator;
|
|
|
|
interface StrategyEnabledInterface
|
|
{
|
|
/**
|
|
* Adds the given strategy under the given name.
|
|
*
|
|
* @param string $name The name of the strategy to register.
|
|
* @param Strategy\StrategyInterface $strategy The strategy to register.
|
|
* @return self
|
|
*/
|
|
public function addStrategy($name, Strategy\StrategyInterface $strategy);
|
|
|
|
/**
|
|
* Gets the strategy with the given name.
|
|
*
|
|
* @param string $name The name of the strategy to get.
|
|
* @return Strategy\StrategyInterface
|
|
*/
|
|
public function getStrategy($name);
|
|
|
|
/**
|
|
* Checks if the strategy with the given name exists.
|
|
*
|
|
* @param string $name The name of the strategy to check for.
|
|
* @return bool
|
|
*/
|
|
public function hasStrategy($name);
|
|
|
|
/**
|
|
* Removes the strategy with the given name.
|
|
*
|
|
* @param string $name The name of the strategy to remove.
|
|
* @return self
|
|
*/
|
|
public function removeStrategy($name);
|
|
}
|