1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace ByTIC\Omnipay\Twispay\Message; |
4
|
|
|
|
5
|
|
|
use ByTIC\Omnipay\Common\Message\Traits\SendDataRequestTrait; |
6
|
|
|
use Omnipay\Common\Message\AbstractRequest as CommonAbstractRequest; |
7
|
|
|
|
8
|
|
|
/** |
9
|
|
|
* Class AbstractRequest |
10
|
|
|
* @package ByTIC\Omnipay\Twispay\Message |
11
|
|
|
*/ |
12
|
|
|
abstract class AbstractRequest extends CommonAbstractRequest |
13
|
|
|
{ |
14
|
|
|
use SendDataRequestTrait; |
15
|
|
|
|
16
|
|
|
/** |
17
|
|
|
* @return mixed |
18
|
|
|
*/ |
19
|
2 |
|
public function getSiteId() |
20
|
|
|
{ |
21
|
2 |
|
return $this->getParameter('siteId'); |
22
|
|
|
} |
23
|
|
|
|
24
|
|
|
/** |
25
|
|
|
* @param $value |
26
|
|
|
* @return CommonAbstractRequest |
27
|
|
|
*/ |
28
|
2 |
|
public function setSiteId($value) |
29
|
|
|
{ |
30
|
2 |
|
return $this->setParameter('siteId', $value); |
31
|
|
|
} |
32
|
|
|
|
33
|
|
|
/** |
34
|
|
|
* @return mixed |
35
|
|
|
*/ |
36
|
2 |
|
public function getApiKey() |
37
|
|
|
{ |
38
|
2 |
|
return $this->getParameter('apiKey'); |
39
|
|
|
} |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* @param $value |
43
|
|
|
* @return CommonAbstractRequest |
44
|
|
|
*/ |
45
|
2 |
|
public function setApiKey($value) |
46
|
|
|
{ |
47
|
2 |
|
return $this->setParameter('apiKey', $value); |
48
|
|
|
} |
49
|
|
|
|
50
|
|
|
/** |
51
|
|
|
* @return mixed |
52
|
|
|
*/ |
53
|
|
|
public function getApiUrl() |
54
|
|
|
{ |
55
|
|
|
return $this->getParameter('apiUrl'); |
56
|
|
|
} |
57
|
|
|
|
58
|
|
|
/** |
59
|
|
|
* @param $value |
60
|
|
|
* @return CommonAbstractRequest |
61
|
|
|
*/ |
62
|
|
|
public function setApiUrl($value) |
63
|
|
|
{ |
64
|
|
|
return $this->setParameter('apiUrl', $value); |
65
|
|
|
} |
66
|
|
|
|
67
|
|
|
/** |
68
|
|
|
* @return mixed |
69
|
|
|
*/ |
70
|
2 |
|
public function getSecureUrl() |
71
|
|
|
{ |
72
|
2 |
|
return $this->getParameter('secureUrl'); |
73
|
|
|
} |
74
|
|
|
|
75
|
|
|
/** |
76
|
|
|
* @param $value |
77
|
|
|
* @return CommonAbstractRequest |
78
|
|
|
*/ |
79
|
|
|
public function setSecureUrl($value) |
80
|
|
|
{ |
81
|
|
|
return $this->setParameter('secureUrl', $value); |
82
|
|
|
} |
83
|
|
|
} |
84
|
|
|
|