Completed
Push — master ( ad0b2c...f5bffe )
by Joachim
05:31
created

SubmitShipmentRequest::getMethod()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
ccs 0
cts 4
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
namespace Loevgaard\Consignor\ShipmentServer\Request;
3
4
class SubmitShipmentRequest extends Request
5
{
6
    public function __construct(array $data, array $options)
7
    {
8
        $this->data = $data;
9
        $this->options = $options;
10
    }
11
12
    public function getMethod(): string
13
    {
14
        return 'POST';
15
    }
16
17
    public function getCommand(): string
18
    {
19
        return RequestInterface::COMMAND_SUBMIT_SHIPMENT;
20
    }
21
}