SubmitShipmentRequest   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 18
ccs 0
cts 13
cp 0
rs 10
c 0
b 0
f 0
wmc 3
lcom 0
cbo 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getCommand() 0 4 1
A getResponseClass() 0 4 1
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