[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/vendor/zendframework/zend-stdlib/src/Hydrator/Strategy/ -> StrategyInterface.php (source)

   1  <?php
   2  /**
   3   * Zend Framework (http://framework.zend.com/)
   4   *
   5   * @link      http://github.com/zendframework/zf2 for the canonical source repository
   6   * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
   7   * @license   http://framework.zend.com/license/new-bsd New BSD License
   8   */
   9  
  10  namespace Zend\Stdlib\Hydrator\Strategy;
  11  
  12  /**
  13   * @todo v3.0, add optional object/data to extract/hydrate.
  14   */
  15  interface StrategyInterface
  16  {
  17      /**
  18       * Converts the given value so that it can be extracted by the hydrator.
  19       *
  20       * @param mixed   $value The original value.
  21       * @param object $object (optional) The original object for context.
  22       * @return mixed Returns the value that should be extracted.
  23       */
  24      public function extract($value);
  25  
  26      /**
  27       * Converts the given value so that it can be hydrated by the hydrator.
  28       *
  29       * @param mixed $value The original value.
  30       * @param array  $data (optional) The original data for context.
  31       * @return mixed Returns the value that should be hydrated.
  32       */
  33      public function hydrate($value);
  34  }


Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1