<commit_before><?php

namespace m4grio\BangkokInsurance\Client;

/**
 * BeansTrait
 *
 * @package m4grio\BangkokInsurance\Client
 * @author  <NAME> <<EMAIL>>
 */
trait BeansTrait
{
    /**
     * Group params in a bean
     *
     * @param       $method
     * @param array $params
     *
     * @return array
     */
    public function mergeParams($method, Array $params = [])
    {
        $newParams = [];
        $preparedParams = $this->defaultParams;
        $preparedParams['bean'] = $params;

        $newParams[$method] = $preparedParams;

        return $newParams;
    }
}<commit_msg>Just an idea on the BeansTrait<commit_after><?php

namespace m4grio\BangkokInsurance\Client;

/**
 * BeansTrait
 *
 * @todo Stop using params to construct beans but receive them on the setter instead
 *
 * @package m4grio\BangkokInsurance\Client
 * @author  <NAME> <<EMAIL>>
 */
trait BeansTrait
{
    /**
     * @var array
     */
    protected $beans = [];

    /**
     * Group params in a bean
     *
     * @param       $method
     * @param array $params
     *
     * @return array
     */
    public function mergeParams($method, Array $params = [])
    {
        $newParams = [];
        $preparedParams = $this->defaultParams;
        $preparedParams['bean'] = $params;

        $newParams[$method] = $preparedParams;

        return $newParams;
    }

    /**
     * @param array $bean
     *
     * @return $this
     */
    public function addBean(Array $bean = [])
    {
        return $this;
    }
}
{'fraction_non_alphanumeric': 0.13443708609271524, 'fraction_numerical': 0.0026490066225165563, 'mean_word_length': 2.1810526315789476, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '4408339', 'n_tokens_mistral': 494, 'n_tokens_neox': 480, 'n_words': 108}