<commit_before><?php
/**
 * File DbConfiguration.php
 *
 * @category
 * @package
 * @author    <NAME> <<EMAIL>>
 * @copyright 2015 Smile
 */

namespace Hipay\SilexIntegration\Configuration;


class DbConfiguration extends AbstractConfiguration
{
    public function getHost()
    {
        return parent::$parameters['db.host'];
    }

    public function getPort()
    {
        return parent::$parameters['db.port'];
    }

    public function getUsername()
    {
        return parent::$parameters['db.username'];
    }

    public function getPassword()
    {
        return parent::$parameters['db.password'];
    }

    public function getDatabaseName()
    {
        return parent::$parameters['db.name'];
    }

    public function getDebug()
    {
        return parent::$parameters['doctrine.debug'];
    }
}<commit_msg>Make access to the parameters static<commit_after><?php
/**
 * File DbConfiguration.php
 *
 * @category
 * @package
 * @author    <NAME> <<EMAIL>>
 * @copyright 2015 Smile
 */

namespace Hipay\SilexIntegration\Configuration;

/**
 * Class DbConfiguration
 *
 * @author    <NAME> <<EMAIL>>
 * @copyright 2015 Smile
 */
class DbConfiguration
{
    public function getHost()
    {
        return ParameterAccessor::getParameter('db.host');
    }

    public function getPort()
    {
        return ParameterAccessor::getParameter('db.port');
    }

    public function getUsername()
    {
        return ParameterAccessor::getParameter('db.username');
    }

    public function getPassword()
    {
        return ParameterAccessor::getParameter('db.password');
    }

    public function getDatabaseName()
    {
        return ParameterAccessor::getParameter('db.name');
    }

    public function getDebug()
    {
        return ParameterAccessor::getParameter('doctrine.debug');
    }
}
{'fraction_non_alphanumeric': 0.12720264317180616, 'fraction_numerical': 0.006607929515418502, 'mean_word_length': 2.941431670281996, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 12, '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': '1197479', 'n_tokens_mistral': 517, 'n_tokens_neox': 493, 'n_words': 105}