AbstractRequest::getQuery()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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