You are here

public function StrategyInterface::hydrate in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-hydrator/src/Strategy/StrategyInterface.php \Zend\Hydrator\Strategy\StrategyInterface::hydrate()

Converts the given value so that it can be hydrated by the hydrator.

Parameters

mixed $value The original value.:

array $data (optional) The original data for context.:

Return value

mixed Returns the value that should be hydrated.

7 methods override StrategyInterface::hydrate()
BooleanStrategy::hydrate in vendor/zendframework/zend-hydrator/src/Strategy/BooleanStrategy.php
Converts the given value so that it can be hydrated by the hydrator.
ClosureStrategy::hydrate in vendor/zendframework/zend-hydrator/src/Strategy/ClosureStrategy.php
Converts the given value so that it can be hydrated by the hydrator.
DateTimeFormatterStrategy::hydrate in vendor/zendframework/zend-hydrator/src/Strategy/DateTimeFormatterStrategy.php
Converts date time string to DateTime instance for injecting to object
DefaultStrategy::hydrate in vendor/zendframework/zend-hydrator/src/Strategy/DefaultStrategy.php
Converts the given value so that it can be hydrated by the hydrator.
ExplodeStrategy::hydrate in vendor/zendframework/zend-hydrator/src/Strategy/ExplodeStrategy.php
Split a string by delimiter

... See full list

File

vendor/zendframework/zend-hydrator/src/Strategy/StrategyInterface.php, line 33

Class

StrategyInterface
@todo v3.0, add optional object/data to extract/hydrate.

Namespace

Zend\Hydrator\Strategy

Code

public function hydrate($value);