<commit_before><?php

namespace m4grio\BangkokInsurance\SoapClient;

use SoapClient;

/**
 * Soap Client Factory
 *
 * @package m4grio\BangkokInsurance\SoapClient
 * @author  <NAME> <<EMAIL>>
 */
class Factory
{
    /**
     * @param       $wsdl
     * @param array $options
     *
     * @return SoapClient
     */
    public function getClient($wsdl, array $options = [])
    {
        $defaults = [
            'trace'       => true,
            //'features'    => \SOAP_SINGLE_ELEMENT_ARRAYS,
            'compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP,
        ];
        $options = array_merge($defaults, $options);
        $client = new SoapClient($wsdl, $options);

        return $client;
    }<commit_msg>Using SOAP 1.1<commit_after><?php

namespace m4grio\BangkokInsurance\SoapClient;

use SoapClient;

/**
 * Soap Client Factory
 *
 * @package m4grio\BangkokInsurance\SoapClient
 * @author  <NAME> <<EMAIL>>
 */
class Factory
{
    /**
     * @param       $wsdl
     * @param array $options
     *
     * @return SoapClient
     */
    public function getClient($wsdl, array $options = [])
    {
        $defaults = [
            'trace'       => true,
            //'features'    => \SOAP_SINGLE_ELEMENT_ARRAYS,
            'compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP,
            'soap_version' => SOAP_1_1,
        ];
        $options = array_merge($defaults, $options);
        $client = new SoapClient($wsdl, $options);

        return $client;
    }
{'fraction_non_alphanumeric': 0.13023255813953488, 'fraction_numerical': 0.0053156146179402, 'mean_word_length': 2.2526997840172784, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1045578', 'n_tokens_mistral': 514, 'n_tokens_neox': 506, 'n_words': 92}