Completed
Push — master ( 847801...b00fa1 )
by Marco
01:06
created

ShipmentRequest::getEndpoint()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
namespace Omnipay\Heidelpay\Message;
3
4
/**
5
 * Charge Request
6
 *
7
 * @method Response send()
8
 */
9
class ShipmentRequest extends AbstractRequest
10
{
11
    public function getData()
12
    {
13
        $this->validate('transactionReference');
14
15
        return [];
16
    }
17
18
    public function getEndpoint()
19
    {
20
        return parent::getEndpoint() . $this->getTransactionReference() . '/shipments';
21
    }
22
}
23