Completed
Push — master ( f5bffe...9f8e49 )
by Joachim
04:21
created

SubmitShipmentRequest::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 2
dl 0
loc 5
ccs 0
cts 5
cp 0
crap 2
rs 9.4285
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 getCommand(): string
13
    {
14
        return RequestInterface::COMMAND_SUBMIT_SHIPMENT;
15
    }
16
}
17