Completed
Branch webservice-support (1bfa77)
by John
02:37
created

WebserviceGateway   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 12
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A purchase() 0 4 1
1
<?php
2
3
namespace Omnipay\Redsys;
4
5
use Omnipay\Common\AbstractGateway;
6
use Omnipay\Redsys\Message\CompletePurchaseRequest;
7
use Omnipay\Redsys\Message\PurchaseRequest;
8
9
/**
10
 * Redsys Webservice Gateway
11
 *
12
 * @link http://www.redsys.es/
13
 */
14
class WebserviceGateway extends RedirectGateway
15
{
16
    public function getName()
17
    {
18
        return 'Redsys Webservice';
19
    }
20
21
    public function purchase(array $parameters = array())
22
    {
23
        return $this->createRequest('\Omnipay\Redsys\Message\WebservicePurchaseRequest', $parameters);
24
    }
25
}
26