public static function Extend(InformationHeaders $headers)
    {
        $new_headers = new InformationHeaders;
        $old_headers = $headers->get();

        if (! empty( $old_headers['env'] ) && is_array( $old_headers['env'] )) {
            $new_headers->setEnvironmentData($old_headers['env']);
        }

        $new_headers->setEnvProperty($old_headers['name'], $old_headers['version']);

        return $new_headers;
    }
public static function Extend(InformationHeaders $headers)
    {
        $new_headers = new InformationHeaders;
        $old_headers = $headers->get();

        if (! empty( $old_headers['env'] ) && is_array( $old_headers['env'] )) {
            $new_headers->setEnvironmentData($old_headers['env']);
        }

        $new_headers->setEnvProperty($old_headers['name'], $old_headers['version']);

        return $new_headers;
    }
public static function Extend ( InformationHeaders $ headers ) { $ new_headers = new InformationHeaders ; $ old_headers = $ headers -> get ( ) ; if ( ! empty ( $ old_headers [ 'env' ] ) && is_array ( $ old_headers [ 'env' ] ) ) { $ new_headers -> setEnvironmentData ( $ old_headers [ 'env' ] ) ; } $ new_headers -> setEnvProperty ( $ old_headers [ 'name' ] , $ old_headers [ 'version' ] ) ; return $ new_headers ; }
Extend an existing InformationHeaders object.
Used in dependant modules to set a new SDK name and version but keep existing PHP SDK data.

@param InformationHeaders $headers InformationHeaders object to extend.

@return InformationHeaders
Extend an existing InformationHeaders object . Used in dependant modules to set a new SDK name and version but keep existing PHP SDK data .