Completed
Push — master ( b41f42...905377 )
by Gregorio
02:32
created

VoidRequest::getData()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1.064

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 3
cts 5
cp 0.6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
crap 1.064
1
<?php
2
3
namespace Omnipay\Spreedly\Message;
4
5
/**
6
 * @method Response send()
7
 */
8
class VoidRequest extends AbstractRequest
9
{
10
    /**
11
     * @return null
12
     * @throws \Omnipay\Common\Exception\InvalidRequestException
13
     */
14 6
    public function getData()
15
    {
16 6
        $this->validate('transactionReference');
17
18 6
        return null;
19
    }
20
21
    /**
22
     * @return string
23
     */
24 6
    public function getEndpoint()
25
    {
26 6
        return $this->endpoint . 'transactions/' . $this->getTransactionReference() . '/void';
27
    }
28
}
29