Test Failed
Pull Request — develop (#41)
by Yuji
04:41
created

UpdateOrderInfoApi   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 2
dl 0
loc 37
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A httpMethod() 0 5 1
A path() 0 4 1
A distillResponse() 0 4 1
A expectsFormFields() 0 4 1
1
<?php
2
3
namespace Shippinno\YahooShoppingJp\Api;
4
5
use Shippinno\YahooShoppingJp\HttpMethod;
6
7
/**
8
 * Class UpdateOrderInfoApi
9
 *
10
 * @package Shippinno\YahooShoppingJp\Api
11
 */
12
class UpdateOrderInfoApi extends AbstractApi
13
{
14
15
    /**
16
     * {@inheritdoc}
17
     */
18
    public function httpMethod(): HttpMethod
19
    {
20
21
        return HttpMethod::POST();
22
    }
23
24
    /**
25
     * {@inheritdoc}
26
     */
27
    public function path(): string
28
    {
29
        return 'orderChange';
30
    }
31
32
    /**
33
     * {@inheritdoc}
34
     */
35
    public function distillResponse(array $response): array
36
    {
37
        return $response;
38
    }
39
40
    /**
41
     * {@inheritdoc}
42
     */
43
    public function expectsFormFields(): bool
44
    {
45
        return false;
46
    }
47
48
}