<commit_before><?php
/**
 * @author         <NAME> <<EMAIL>>
 * @copyright      (c) 2019, <NAME>. All Rights Reserved.
 * @license        GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory.
 * @package        PH7 / App / System / Module / SMS Verification / Inc / Class
 */

namespace PH7;


class SmsGatewayFactory
{
    const CLICKATELL_NAME = 'clickatell';
    const TWILIO_NAME = 'twilio';
    const INVALID_SMS_GATEWAY_MESSAGE = '"%s" is an invalid SMS gateway specified.';

    /**
     * @param string $sSmsGateway
     *
     * @return SmsProvidable
     *
     * @throws InvalidSmsGatewayException<commit_msg>[FIX] Add missing Config class import<commit_after><?php
/**
 * @author         <NAME> <<EMAIL>>
 * @copyright      (c) 2019, <NAME>. All Rights Reserved.
 * @license        GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory.
 * @package        PH7 / App / System / Module / SMS Verification / Inc / Class
 */

namespace PH7;

use PH7\Framework\Config\Config;

class SmsGatewayFactory
{
    const CLICKATELL_NAME = 'clickatell';
    const TWILIO_NAME = 'twilio';
    const INVALID_SMS_GATEWAY_MESSAGE = '"%s" is an invalid SMS gateway specified.';

    /**
     * @param string $sSmsGateway
     *
     * @return SmsProvidable
     *
     * @throws InvalidSmsGatewayException
{'fraction_non_alphanumeric': 0.11054545454545454, 'fraction_numerical': 0.012363636363636363, 'mean_word_length': 2.832869080779944, 'pattern_counts': {'":': 0, '<': 13, '<?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': '5328354', 'n_tokens_mistral': 447, 'n_tokens_neox': 432, 'n_words': 124}