Total Complexity | 4 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | abstract class AbstractRequest extends \Omnipay\Common\Message\AbstractRequest |
||
17 | { |
||
18 | protected $zeroAmountAllowed = false; |
||
19 | |||
20 | /** |
||
21 | * Get the merchant purse. |
||
22 | * |
||
23 | * @return string merchant purse - email associated with the merchant account |
||
24 | */ |
||
25 | 6 | public function getPurse() |
|
26 | { |
||
27 | 6 | return $this->getParameter('purse'); |
|
28 | } |
||
29 | |||
30 | /** |
||
31 | * Set the purse. |
||
32 | * |
||
33 | * @param string $value merchant purse - email associated with the merchant account |
||
34 | * @return self |
||
35 | */ |
||
36 | 14 | public function setPurse($value) |
|
37 | { |
||
38 | 14 | return $this->setParameter('purse', $value); |
|
39 | } |
||
40 | |||
41 | /** |
||
42 | * Get the merchant secret. |
||
43 | * |
||
44 | * @return string merchant secret - IPN shared secret which merchant gets by email from Paxum Merchant Services |
||
45 | */ |
||
46 | 6 | public function getSecret() |
|
49 | } |
||
50 | |||
51 | /** |
||
52 | * Set the merchant secret. |
||
53 | * |
||
54 | * @param string $value merchant secret - IPN shared secret which merchant gets by email from Paxum Merchant Services |
||
55 | * @return self |
||
56 | */ |
||
57 | 14 | public function setSecret($value) |
|
60 | } |
||
61 | } |
||
62 |