HydrationInterface.php 570 B

12345678910111213141516171819202122
  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. namespace Zend\Hydrator;
  10. interface HydrationInterface
  11. {
  12. /**
  13. * Hydrate $object with the provided $data.
  14. *
  15. * @param array $data
  16. * @param object $object
  17. * @return object
  18. */
  19. public function hydrate(array $data, $object);
  20. }