code: public function hydrate(array $data, $object)
      {
          if (!$object instanceof VisitInterface) {
              throw new Exception\InvalidArgumentException(
                  '$object must be an instance of Zf2Forum\Model\Visit\VisitInterface'
              );
          }
  
          return parent::hydrate($data, $object);
      }
docs: hydrate
  
  @param unknown_type $object
  @throws Exception\InvalidArgumentException