public static function create(array $headers, array $entities)
    {
        $result  = new QueryEntitiesResult();
        $headers = array_change_key_case($headers);
        $nextPK  = Utilities::tryGetValue(
            $headers,
            Resources::X_MS_CONTINUATION_NEXTPARTITIONKEY
        );
        $nextRK  = Utilities::tryGetValue(
            $headers,
            Resources::X_MS_CONTINUATION_NEXTROWKEY
        );

        if ($nextRK != null && $nextPK != null) {
            $result->setContinuationToken(
                new TableContinuationToken(
                    '',
                    $nextPK,
                    $nextRK,
                    Utilities::getLocationFromHeaders($headers)
                )
            );
        }

        $result->setEntities($entities);

        return $result;
    }
public static function create(array $headers, array $entities)
    {
        $result  = new QueryEntitiesResult();
        $headers = array_change_key_case($headers);
        $nextPK  = Utilities::tryGetValue(
            $headers,
            Resources::X_MS_CONTINUATION_NEXTPARTITIONKEY
        );
        $nextRK  = Utilities::tryGetValue(
            $headers,
            Resources::X_MS_CONTINUATION_NEXTROWKEY
        );

        if ($nextRK != null && $nextPK != null) {
            $result->setContinuationToken(
                new TableContinuationToken(
                    '',
                    $nextPK,
                    $nextRK,
                    Utilities::getLocationFromHeaders($headers)
                )
            );
        }

        $result->setEntities($entities);

        return $result;
    }
public static function create ( array $ headers , array $ entities ) { $ result = new QueryEntitiesResult ( ) ; $ headers = array_change_key_case ( $ headers ) ; $ nextPK = Utilities :: tryGetValue ( $ headers , Resources :: X_MS_CONTINUATION_NEXTPARTITIONKEY ) ; $ nextRK = Utilities :: tryGetValue ( $ headers , Resources :: X_MS_CONTINUATION_NEXTROWKEY ) ; if ( $ nextRK != null && $ nextPK != null ) { $ result -> setContinuationToken ( new TableContinuationToken ( '' , $ nextPK , $ nextRK , Utilities :: getLocationFromHeaders ( $ headers ) ) ) ; } $ result -> setEntities ( $ entities ) ; return $ result ; }
Creates new QueryEntitiesResult instance.

@param array $headers  The HTTP response headers.
@param array $entities The entities.

@internal

@return QueryEntitiesResult
Creates new QueryEntitiesResult instance .