Completed
Branch master (eebe0d)
by Gregorio
02:31 queued 50s
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

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
crap 1
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 9
    public function getData()
15
    {
16 9
        $this->validate('transactionReference');
17
18 9
        return null;
19
    }
20
21
    /**
22
     * @return string
23
     */
24 9
    public function getEndpoint()
25
    {
26 9
        return $this->endpoint . 'transactions/' . $this->getTransactionReference() . '/void';
27
    }
28
}
29