Skip to content

Commit 01bbdd8

Browse files
committed
Added AbstractRequest
1 parent 9adb79f commit 01bbdd8

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

src/Message/AbstractRequest.php

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<?php namespace Omnipay\NestPay\Message;
2+
3+
/**
4+
* NestPay Purchase AbstractRequest
5+
*
6+
* (c) Yasin Kuyu
7+
* 2015, insya.com
8+
* http://www.github.com/yasinkuyu/omnipay-nestpay
9+
*/
10+
abstract class AbstractRequest extends \Omnipay\Common\Message\AbstractRequest
11+
{
12+
13+
public function getUserName()
14+
{
15+
return $this->getParameter('name');
16+
}
17+
18+
public function setUserName($value)
19+
{
20+
return $this->setParameter('name', $value);
21+
}
22+
23+
public function getClientId()
24+
{
25+
return $this->getParameter('clientId');
26+
}
27+
28+
public function setClientId($value)
29+
{
30+
return $this->setParameter('clientId', $value);
31+
}
32+
33+
public function getPassword()
34+
{
35+
return $this->getParameter('password');
36+
}
37+
38+
public function setPassword($value)
39+
{
40+
return $this->setParameter('password', $value);
41+
}
42+
43+
public function getBank()
44+
{
45+
return $this->getParameter('bank');
46+
}
47+
48+
public function setBank($value)
49+
{
50+
return $this->setParameter('bank', $value);
51+
}
52+
}

0 commit comments

Comments
 (0)