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

SubmitShipmentRequest   A

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 getMethod() 0 4 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 getMethod(): string
13
    {
14
        return 'POST';
15
    }
16
17
    public function getCommand(): string
18
    {
19
        return RequestInterface::COMMAND_SUBMIT_SHIPMENT;
20
    }
21
}