You are here

class DefaultStrategy in Zircon Profile 8

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

Hierarchy

Expanded class hierarchy of DefaultStrategy

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

File

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

Namespace

Zend\Hydrator\Strategy
View source
class DefaultStrategy implements StrategyInterface {

  /**
   * Converts the given value so that it can be extracted by the hydrator.
   *
   * @param mixed $value The original value.
   * @return mixed Returns the value that should be extracted.
   */
  public function extract($value) {
    return $value;
  }

  /**
   * Converts the given value so that it can be hydrated by the hydrator.
   *
   * @param mixed $value The original value.
   * @return mixed Returns the value that should be hydrated.
   */
  public function hydrate($value) {
    return $value;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DefaultStrategy::extract public function Converts the given value so that it can be extracted by the hydrator. Overrides StrategyInterface::extract
DefaultStrategy::hydrate public function Converts the given value so that it can be hydrated by the hydrator. Overrides StrategyInterface::hydrate