<commit_before><?php
/**
 * 2007-2014 [PagSeguro Internet Ltda.]
 *
 * NOTICE OF LICENSE
 *
 *Licensed under the Apache License, Version 2.0 (the "License");
 *you may not use this file except in compliance with the License.
 *You may obtain a copy of the License at
 *
 *http://www.apache.org/licenses/LICENSE-2.0
 *
 *Unless required by applicable law or agreed to in writing, software
 *distributed under the License is distributed on an "AS IS" BASIS,
 *WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *See the License for the specific language governing permissions and
 *limitations under the License.
 *
 *  @author    PagSeguro Internet Ltda.
 *  @copyright 2007-2014 PagSeguro Internet Ltda.
 *  @license   http://www.apache.org/licenses/LICENSE-2.0
 */

/***
 * Represent a payment method config item
 */
class PagSeguroPaymentMethodConfigItem
{

    /***
     * Allow add extra information to order
     *
     * @var string
     */
    private $key;

    /***
     * Value of corresponding key
     *
     * @var mixed
     */
    private $value;

    /***
     * Used for grouping values of payment method configuration
     * @var mixed
     */
    private $group;

    public function __construct($group = null, $value = null, $key = null)
    {

        if (isset($key) && !PagSeguroHelper::isEmpty($key)) {
            $this->setKey($key);
        }
        if (isset($value) && !PagSeguroHelper::isEmpty($value)) {
            $this->setValue($value);
        }
        if (isset($group) && !PagSeguroHelper::isEmpty($group)) {
            $this->setGroup($group);
        }
    }

    /***
     * Gets the payment method config item key
     * @return string
     */
    public function getKey()
    {
        return $this->key;
    }

    /***
     * Sets the payment method config item key
     *
     * @param string $key
     */
    public function setKey($key)
    {
        $this->key = $key;
    }

    /***
     * Gets payment method config item value
     * @return string
     */
    public function getValue()
    {
        return $this->value;
    }

    /***
     * Sets payment method config item value
     *
     * @param string $value
     */
    public function setValue($value)
    {
        $this->value = $value;
    }

    /***
     * Gets payment method config item group
     *
     * @return int
     */
    public function getGroup()
    {
        return $this->group;
    }

    /***
     * Sets payment method config item group
     *<commit_msg>Fix Decimal Format in PagSeguroPaymentMethodConfigItem<commit_after><?php
/**
 * 2007-2014 [PagSeguro Internet Ltda.]
 *
 * NOTICE OF LICENSE
 *
 *Licensed under the Apache License, Version 2.0 (the "License");
 *you may not use this file except in compliance with the License.
 *You may obtain a copy of the License at
 *
 *http://www.apache.org/licenses/LICENSE-2.0
 *
 *Unless required by applicable law or agreed to in writing, software
 *distributed under the License is distributed on an "AS IS" BASIS,
 *WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *See the License for the specific language governing permissions and
 *limitations under the License.
 *
 *  @author    PagSeguro Internet Ltda.
 *  @copyright 2007-2014 PagSeguro Internet Ltda.
 *  @license   http://www.apache.org/licenses/LICENSE-2.0
 */

/***
 * Represent a payment method config item
 */
class PagSeguroPaymentMethodConfigItem
{

    /***
     * Allow add extra information to order
     *
     * @var string
     */
    private $key;

    /***
     * Value of corresponding key
     *
     * @var mixed
     */
    private $value;

    /***
     * Used for grouping values of payment method configuration
     * @var mixed
     */
    private $group;

    public function __construct($group = null, $value = null, $key = null)
    {

        if (isset($key) && !PagSeguroHelper::isEmpty($key)) {
            $this->setKey($key);
        }
        if (isset($value) && !PagSeguroHelper::isEmpty($value)) {
            $this->setValue($value);
        }
        if (isset($group) && !PagSeguroHelper::isEmpty($group)) {
            $this->setGroup($group);
        }
    }

    /***
     * Gets the payment method config item key
     * @return string
     */
    public function getKey()
    {
        return $this->key;
    }

    /***
     * Sets the payment method config item key
     *
     * @param string $key
     */
    public function setKey($key)
    {
        $this->key = $key;
    }

    /***
     * Gets payment method config item value
     * @return string
     */
    public function getValue()
    {
        return $this->value;
    }

    /***
     * Sets payment method config item value
     *
     * @param string $value
     */
    public function setValue($value)
    {
        $this->value = PagSeguroHelper::decimalFormat($value);
    }

    /***
     * Gets payment method config item group
     *
     * @return int
     */
    public function getGroup()
    {
        return $this->group;
    }

    /***
     * Sets payment method config item group
     *
{'fraction_non_alphanumeric': 0.11621991782430052, 'fraction_numerical': 0.00860888280180004, 'mean_word_length': 2.1614100185528757, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '5833618', 'n_tokens_mistral': 1518, 'n_tokens_neox': 1455, 'n_words': 464}