You are here

class ClosureStrategy in Zircon Profile 8

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

Hierarchy

Expanded class hierarchy of ClosureStrategy

Deprecated

Use Zend\Hydrator\Strategy\ClosureStrategy from zendframework/zend-hydrator instead.

File

vendor/zendframework/zend-stdlib/src/Hydrator/Strategy/ClosureStrategy.php, line 17

Namespace

Zend\Stdlib\Hydrator\Strategy
View source
class ClosureStrategy extends BaseClosureStrategy implements StrategyInterface {

}

Members

Namesort descending Modifiers Type Description Overrides
ClosureStrategy::$extractFunc protected property Function, used in extract method, default:
ClosureStrategy::$hydrateFunc protected property Function, used in hydrate method, default:
ClosureStrategy::extract public function Converts the given value so that it can be extracted by the hydrator. Overrides StrategyInterface::extract
ClosureStrategy::hydrate public function Converts the given value so that it can be hydrated by the hydrator. Overrides StrategyInterface::hydrate
ClosureStrategy::__construct public function You can describe how your values will extract and hydrate, like this: