-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathGatewayAbstract.php
146 lines (138 loc) · 3.18 KB
/
GatewayAbstract.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<?php
/**
* Created by PhpStorm.
* User: Ali
* Date: 12/23/2016
* Time: 6:09 PM
*/
namespace Pamenary\LaravelSms\Gateways;
abstract class GatewayAbstract implements GatewayInterface {
public $webService;
public $username;
public $password;
public $from;
public $key;
/**
* @param $defaultGateway
*
* @return AzinwebGateway
*/
public function initGateway( $defaultGateway ) {
switch ( $defaultGateway ) {
case 'azinweb':
$gateway = new AzinwebGateway();
case 'bayanegah':
$gateway = new BayanegahGateway();
break;
case 'aradsms':
$gateway = new AradsmsGateway();
break;
case 'ariaideh':
$gateway = new AriaidehGateway();
break;
case '_0098sms':
$gateway = new _0098smsGateway();
break;
case 'adpdigital':
$gateway = new AdpdigitalGateway();
break;
case 'afe':
$gateway = new AfeGateway();
break;
case 'afilnet':
$gateway = new AfilnetGateway();
break;
case 'amansoft':
$gateway = new AmansoftGateway();
break;
case 'arkapayamak':
$gateway = new ArkapayamakGateway();
break;
case 'asanak':
$gateway = new AsanakGateway();
break;
case 'asiapayamak':
$gateway = new AsiapayamakGateway();
break;
case 'barmanpayamak':
$gateway = new BarmanpayamakGateway();
break;
case 'barzinsms':
$gateway = new BarzinsmsGateway();
break;
case 'bearsms':
$gateway = new BearsmsGateway();
break;
case 'bestit':
$gateway = new BestitGateway();
break;
case 'bulutfon':
$gateway = new BulutfonGateway();
break;
case 'caffeweb':
$gateway = new CaffewebGateway();
break;
case 'chapargah':
$gateway = new ChapargahGateway();
break;
case 'chaparpanel':
$gateway = new ChaparpanelGateway();
break;
case 'difaan':
$gateway = new DifaanGateway();
break;
case 'dot4all':
$gateway = new Dot4allGateway();
break;
case 'esms24':
$gateway = new Esms24Gateway();
break;
case 'faraed':
$gateway = new FaraedGateway();
break;
case 'farapayamak':
$gateway = new FarapayamakGateway();
break;
case 'farazpayam':
$gateway = new FarazpayamGateway();
break;
case 'fayasms':
$gateway = new FayasmsGateway();
break;
case 'firstpayamak':
$gateway = new FirstpayamakGateway();
break;
case 'fortytwo':
$gateway = new FortytwoGateway();
break;
case 'freepayamak':
$gateway = new FreepayamakGateway();
break;
case 'hostiran':
$gateway = new HostiranGateway();
break;
case 'melipayamak':
$gateway = new MelipayamakGateway();
break;
case 'itco':
$gateway = new ItcoGateway();
break;
case 'rahyabpayamgostaran':
$gateway = new RahyabpayamgostaranGateway();
break;
case 'saharsms':
$gateway = new SaharsmsGateway();
break;
case 'armaghan':
$gateway = new ArmaghanGateway();
break;
case 'payamakaria':
$gateway = new PayamakariaGateway();
break;
default:
$gateway = new AzinwebGateway();
break;
}
return $gateway;
}
}