You are here

interface StrategyEnabledInterface in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/zendframework/zend-hydrator/src/StrategyEnabledInterface.php \Zend\Hydrator\StrategyEnabledInterface
  2. 8.0 vendor/zendframework/zend-stdlib/src/Hydrator/StrategyEnabledInterface.php \Zend\Stdlib\Hydrator\StrategyEnabledInterface
Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-hydrator/src/StrategyEnabledInterface.php \Zend\Hydrator\StrategyEnabledInterface

Hierarchy

Expanded class hierarchy of StrategyEnabledInterface

All classes that implement StrategyEnabledInterface

1 file declares its use of StrategyEnabledInterface
StrategyEnabledInterface.php in vendor/zendframework/zend-stdlib/src/Hydrator/StrategyEnabledInterface.php

File

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

Namespace

Zend\Hydrator
View source
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);

}

Members

Namesort descending Modifiers Type Description Overrides
StrategyEnabledInterface::addStrategy public function Adds the given strategy under the given name. 1
StrategyEnabledInterface::getStrategy public function Gets the strategy with the given name. 1
StrategyEnabledInterface::hasStrategy public function Checks if the strategy with the given name exists. 1
StrategyEnabledInterface::removeStrategy public function Removes the strategy with the given name. 1