Test Failed
Pull Request — master (#19)
by Aya
04:08
created

AbstractApi   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 26
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
httpMethod() 0 1 ?
path() 0 1 ?
distillResponse() 0 1 ?
A expectsFormFields() 0 4 1
1
<?php
2
3
namespace Shippinno\YahooShoppingJp\Api;
4
5
use Shippinno\YahooShoppingJp\HttpMethod;
6
7
abstract class AbstractApi
8
{
9
    /**
10
     * @return string
11
     */
12
    abstract public function httpMethod(): HttpMethod;
13
14
    /**
15
     * @return string
16
     */
17
    abstract public function path(): string;
18
19
    /**
20
     * @param array $response
21
     * @return array
22
     */
23
    abstract public function distillResponse(array $response): array;
24
25
    /**
26
     * @return bool
27
     */
28
    public function expectsFormFields(): bool
29
    {
30
        return true;
31
    }
32
}
33