Config::getBaseUrl()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Wavecell;
4
5
/**
6
 * WaveCell Configuration.
7
 *
8
 * @author     Pribumi Technology
9
 * @license    MIT
10
 * @copyright  (c) 2019, Pribumi Technology
11
 */
12
class Config
13
{
14
    const BASE_URL = 'https://api.wavecell.com';
15
16
    /**
17
     * Sub Account Id.
18
     *
19
     * @var string
20
     */
21
    public static $subAccountId;
22
23
    /**
24
     * Secret API.
25
     *
26
     * @var string
27
     */
28
    public static $secretKey;
29
30
    /**
31
     * be used to personalized the content of your message template with your product name or brand name.
32
     *
33
     * @var string
34
     */
35
    public static $smsFrom;
36
37
    /**
38
     * Maximum expired time from now + $smsExpireInMinutes.
39
     *
40
     * @var int
41
     */
42
    public static $smsExpireInMinutes = 60;
43
44
    /**
45
     * Default timezone.
46
     *
47
     * @var string
48
     */
49
    public static $timeZone = 'Asia/Jakarta';
50
51
    /**
52
     * Value used to set the length of the code to be generated.
53
     *
54
     * @var int
55
     */
56
    public static $otpCodeLength = 6;
57
58
    /**
59
     * Value used to set how long the code generated should remain valid for verification. The value is expressed in seconds.
60
     *
61
     * @var int
62
     */
63
    public static $otpCodeValidity = 600;
64
65
    /**
66
     * Value used to define the minimum interval in second allowed before a new verification request
67
     * can be sent to the same destination phone number.
68
     *
69
     * @var int
70
     */
71
    public static $resendInterval = 120;
72
73
    /**
74
     * 2-chars ISO country code (ex: SG, UK, ID).
75
     *
76
     * @var string
77
     */
78
    public static $country;
79
80
    /**
81
     * Curl Options.
82
     *
83
     * @var array
84
     */
85
    public static $curlOptions = array();
86
87
    /**
88
     * Get default URL.
89
     *
90
     * @return string
91
     */
92
    public static function getBaseUrl()
93
    {
94
        return Config::BASE_URL;
95
    }
96
}
97