IfConfigTest::getHeaders()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
1
<?php declare(strict_types = 1);
2
/**
3
 *
4
 * Copyright (C) 2018  Ross Mitchell
5
 *
6
 * This file is part of RossMitchell/UpdateCloudFlare.
7
 *
8
 * RossMitchell/UpdateCloudFlare is free software: you can redistribute
9
 * it and/or modify it under the terms of the GNU General Public License
10
 * as published by the Free Software Foundation, either version 3 of the
11
 * License, or (at your option) any later version.
12
 *
13
 * This program is distributed in the hope that it will be useful,
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
 * GNU General Public License for more details.
17
 *
18
 * You should have received a copy of the GNU General Public License
19
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
 */
21
22
namespace RossMitchell\UpdateCloudFlare\Tests\Requests;
23
24
use RossMitchell\UpdateCloudFlare\Requests\IfConfig;
25
26
/**
27
 * Class IfConfigTest
28
 * @testdox RossMitchell\UpdateCloudFlare\Requests\IfConfig
29
 * @package RossMitchell\UpdateCloudFlare\Tests\Requests
30
 */
31
class IfConfigTest extends AbstractRequest
32
{
33
    /**
34
     * @Inject
35
     * @var IfConfig
36
     */
37
    private $request;
38
39
    /**
40
     * @return IfConfig
41
     */
42
    public function getRequest()
43
    {
44
        return $this->request;
45
    }
46
47
    /**
48
     * @return array
49
     */
50
    public function getHeaders(): array
51
    {
52
        return [];
53
    }
54
55
    /**
56
     * @return string
57
     */
58
    public function getRequestType(): string
59
    {
60
        return 'GET';
61
    }
62
63
    /**
64
     * @return array
65
     */
66
    public function getFields(): array
67
    {
68
        return [];
69
    }
70
71
    /**
72
     * @return string
73
     */
74
    public function getUrl(): string
75
    {
76
        return 'http://ifconfig.co';
77
    }
78
}
79