SubmitShipmentRequest::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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