class DefaultStrategy in Zircon Profile 8.0
Same name in this branch
- 8.0 vendor/zendframework/zend-hydrator/src/Strategy/DefaultStrategy.php \Zend\Hydrator\Strategy\DefaultStrategy
- 8.0 vendor/zendframework/zend-stdlib/src/Hydrator/Strategy/DefaultStrategy.php \Zend\Stdlib\Hydrator\Strategy\DefaultStrategy
Same name and namespace in other branches
- 8 vendor/zendframework/zend-hydrator/src/Strategy/DefaultStrategy.php \Zend\Hydrator\Strategy\DefaultStrategy
Hierarchy
- class \Zend\Hydrator\Strategy\DefaultStrategy implements StrategyInterface
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\StrategyView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DefaultStrategy:: |
public | function |
Converts the given value so that it can be extracted by the hydrator. Overrides StrategyInterface:: |
|
DefaultStrategy:: |
public | function |
Converts the given value so that it can be hydrated by the hydrator. Overrides StrategyInterface:: |