<commit_before><?php

namespace m4grio\BangkokInsurance\Client;

use m4grio\BangkokInsurance\Client;

/**
 * Class ModelClient
 *
 * @package m4grio\BangkokInsurance\Client
 * @author  <NAME> <<EMAIL>>
 */
class ModelClient extends Client
{
    use ParamsMapperTrait;

    protected $map = [
        'user_id' => 'UserID',
    ];

    /**
     * @param       $method
     * @param array $params
     *
     * @return mixed
     * @throws \Exception
     * @throws \SoapFault
     */
    public function call($method, Array $params = [])
    {
        $rawResult = parent::call($method, $params);

        switch ($method) {
            case 'GetCarBrandAndModel':
                $result = $rawResult->GetCarBrandAndModelReturn;
        }

        return $result;
    }
}<commit_msg>Implemented result for ModelProcess calls<commit_after><?php

namespace m4grio\BangkokInsurance\Client;

use m4grio\BangkokInsurance\Client;

/**
 * Class ModelClient
 *
 * @package m4grio\BangkokInsurance\Client
 * @author  <NAME> <<EMAIL>>
 */
class ModelClient extends Client
{
    use ParamsMapperTrait;

    protected $map = [
        'user_id' => 'UserID',
    ];

    /**
     * @param       $method
     * @param array $params
     *
     * @return mixed
     * @throws \Exception
     * @throws \SoapFault
     */
    public function call($method, Array $params = [])
    {
        $rawResult = parent::call($method, $params);

        switch ($method) {
            case 'GetCarBrandAndModel':
                $result = $rawResult->GetCarBrandAndModelReturn;
            break;

            case 'GetCarBrand':
                $result = $rawResult->GetCarBrandReturn->x_car_brand->string;
        }

        return $result;
    }
}
{'fraction_non_alphanumeric': 0.12529002320185614, 'fraction_numerical': 0.0034802784222737818, 'mean_word_length': 2.2363977485928705, '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': '2330433', 'n_tokens_mistral': 559, 'n_tokens_neox': 535, 'n_words': 107}