public function asRaw($data): YiiResponse
    {
        $response = Yii::$app->getResponse();
        $response->data = $data;
        $response->format = YiiResponse::FORMAT_RAW;
        return $response;
    }
public function asRaw($data): YiiResponse
    {
        $response = Yii::$app->getResponse();
        $response->data = $data;
        $response->format = YiiResponse::FORMAT_RAW;
        return $response;
    }
public function asRaw ( $ data ) : YiiResponse { $ response = Yii :: $ app -> getResponse ( ) ; $ response -> data = $ data ; $ response -> format = YiiResponse :: FORMAT_RAW ; return $ response ; }
Sets the response format of the given data as RAW.

@param mixed $data The data that should *not* be formatted.
@return YiiResponse A response that is configured to send `$data` without formatting.
@see YiiResponse::$format
@see YiiResponse::FORMAT_RAW
Sets the response format of the given data as RAW .