Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/4539' into develop
Browse files Browse the repository at this point in the history
Forward port #4539
  • Loading branch information
weierophinney committed May 24, 2013
2 parents 7df360e + 3342ba6 commit fd1692a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion library/Zend/Stdlib/Hydrator/Strategy/StrategyInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,16 @@

namespace Zend\Stdlib\Hydrator\Strategy;

/**
* @todo v3.0, add optional object/data to extract/hydrate.
*/
interface StrategyInterface
{
/**
* Converts the given value so that it can be extracted by the hydrator.
*
* @param mixed $value The original value.
* @param mixed $value The original value.
* @param object $object (optional) The original object for context.
* @return mixed Returns the value that should be extracted.
*/
public function extract($value);
Expand All @@ -23,6 +27,7 @@ public function extract($value);
* Converts the given value so that it can be hydrated by the hydrator.
*
* @param mixed $value The original value.
* @param array $data (optional) The original data for context.
* @return mixed Returns the value that should be hydrated.
*/
public function hydrate($value);
Expand Down

0 comments on commit fd1692a

Please sign in to comment.