AbstractRequest   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 33
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getMethod() 0 3 1
A getQuery() 0 3 1
A getBody() 0 3 1
1
<?php
2
3
namespace Viktoras\Scryfall\Client\Request;
4
5
use Viktoras\Scryfall\Client\Request\Traits\Prettifyable;
6
use Viktoras\Scryfall\Enums;
7
8
abstract class AbstractRequest implements RequestInterface
9
{
10
    use Prettifyable;
11
12
    /**
13
     * The data format to return. This method only supports json.
14
     *
15
     * @var string
16
     */
17
    protected $format = Enums\ResponseFormats::JSON;
18
19
    /**
20
     * {@inheritdoc}
21
     */
22
    public function getMethod(): string
23
    {
24
        return 'GET';
25
    }
26
27
    /**
28
     * {@inheritdoc}
29
     */
30
    public function getQuery(): string
31
    {
32
        return '';
33
    }
34
35
    /**
36
     * {@inheritdoc}
37
     */
38
    public function getBody(): string
39
    {
40
        return '';
41
    }
42
}
43