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

SubmitShipmentRequest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

2 Methods

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