<commit_before><?php
/**
 * @author    <NAME> <<EMAIL>>
 * @copyright Copyright (c) 2017, Darvin Studio
 * @link      https://www.darvin-studio.ru
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Darvin\Databaser\MySQL;

/**
 * MySQL credentials
 */
class MySQLCredentials
{
    /**
     * @var array
     */
    private static $clientArgMap = [
        'host'     => 'h',
        'port'     => 'P',
        'dbName'   => 'D',
        'user'     => 'u',
        'password' => 'p',
    ];

    /**
     * @var array
     */
    private static $requiredSymfonyParams = [
        'database_name',
    ];

    /**
     * @var array
     */
    private static $symfonyParamMap = [
        'host'     => 'database_host',
        'port'     => 'database_port',
        'dbName'   => 'database_name',
        'user'     => 'database_user',
        'password' => '<PASSWORD>',
    ];

    /**
     * @var string
     */
    private $host;

    /**
     * @var int
     */
    private $port;

    /**
     * @var string<commit_msg>Implement MySQL credentials class.<commit_after><?php
/**
 * @author    <NAME> <<EMAIL>>
 * @copyright Copyright (c) 2017, Darvin Studio
 * @link      https://www.darvin-studio.ru
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Darvin\Databaser\MySQL;

/**
 * MySQL credentials
 */
class MySQLCredentials
{
    /**
     * @var array
     */
    private static $clientArgMap = [
        'host'     => 'h',
        'port'     => 'P',
        'dbName'   => 'D',
        'user'     => 'u',
        'password' => 'p',
    ];

    /**
     * @var array
     */
    private static $symfonyParamMap = [
        'host'     => 'database_host',
        'port'     => 'database_port',
        'dbName'   => 'database_name',
        'user'     => 'database_user',
        'password' => '<PASSWORD>',
    ];

    /**
     * @var array
     */
    private static $requiredSymfonyParams = [
        'database_name',
    ];

    /**
     * @var string
     */
    private $host;

    /**
     * @var int
     */
    private $port;

    /**
     * @var string
{'fraction_non_alphanumeric': 0.16008869179600888, 'fraction_numerical': 0.003547671840354767, 'mean_word_length': 1.7749077490774907, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 31, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '4433439', 'n_tokens_mistral': 721, 'n_tokens_neox': 706, 'n_words': 168}