UpdateDnsRecordsResponse::getResultJson()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 17

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 17
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\Fakes\Helpers;
23
24
/**
25
 * Class DnsRecordsResponse
26
 * @package RossMitchell\UpdateCloudFlare\Tests\Fakes\Helpers
27
 */
28
class UpdateDnsRecordsResponse extends AbstractCloudFlareResponse
29
{
30
    protected $resultIsArray = false;
31
32
    /**
33
     * @return string
34
     */
35
    public function getResultJson(): string
36
    {
37
        return <<<JSON
38
{
39
    "id": "372e67954025e0ba6aaa6d586b9e0b59",
40
    "type": "A",
41
    "name": "example.com",
42
    "content": "9.8.7.6",
43
    "proxiable": true,
44
    "proxied": false,
45
    "ttl": 120,
46
    "locked": false,
47
    "zone_id": "023e105f4ecef8ad9ca31a8372d0c353",
48
    "zone_name": "example.com",
49
    "created_on": "2014-01-01T05:20:00.12345Z",
50
    "modified_on": "2014-01-01T05:20:00.12345Z",
51
    "data": {}
52
}
53
JSON;
54
    }
55
}
56