code: public function extract($object)
      {
          $data = array();
          if (is_array($object) || $object instanceof \Traversable) {
              foreach ($object as $key => $value) {
                  $data[$key] = $value;
              }
          }
          return $data;
      }
docs: /* (non-PHPdoc)
  @see \Zend\Hydrator\HydratorInterface::extract()