AbstractDataWrapper::setEtag()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php declare(strict_types = 1);
2
3
namespace ikoene\Marvel\DataWrapper;
4
5
/**
6
 * Class AbstractDataWrapper
7
 * @package ikoene\Marvel\DataWrapper
8
*/
9
abstract class AbstractDataWrapper
10
{
11
    /**
12
     * The HTTP status code of the returned result.
13
     *
14
     * @var int
15
     */
16
    private $code;
17
18
    /**
19
     * A string description of the call status.
20
     *
21
     * @var string
22
     */
23
    private $status;
24
25
    /**
26
     * The copyright notice for the returned result.
27
     *
28
     * @var string
29
     */
30
    private $copyright;
31
32
    /**
33
     * The attribution notice for this result. Please display either this notice or the contents of the attributionHTML field on all screens which contain data from the Marvel Comics API.
34
     *
35
     * @var string
36
     */
37
    private $attributionText;
38
39
    /**
40
     * An HTML representation of the attribution notice for this result. Please display either this notice or the contents of the attributionText field on all screens which contain data from the Marvel Comics API.
41
     *
42
     * @var string
43
     */
44
    private $attributionHTML;
45
46
    /**
47
     * A digest value of the content returned by the call.
48
     *
49
     * @var string
50
     */
51
    private $etag;
52
53
    /**
54
     * @return int
55
     */
56
    public function getCode()
57
    {
58
        return $this->code;
59
    }
60
61
    /**
62
     * @param int $code
63
     */
64
    public function setCode(int $code)
65
    {
66
        $this->code = $code;
67
    }
68
69
    /**
70
     * @return string
71
     */
72
    public function getStatus()
73
    {
74
        return $this->status;
75
    }
76
77
    /**
78
     * @param string $status
79
     */
80
    public function setStatus(string $status)
81
    {
82
        $this->status = $status;
83
    }
84
85
    /**
86
     * @return string
87
     */
88
    public function getCopyright()
89
    {
90
        return $this->copyright;
91
    }
92
93
    /**
94
     * @param string $copyright
95
     */
96
    public function setCopyright(string $copyright)
97
    {
98
        $this->copyright = $copyright;
99
    }
100
101
    /**
102
     * @return string
103
     */
104
    public function getAttributionText()
105
    {
106
        return $this->attributionText;
107
    }
108
109
    /**
110
     * @param string $attributionText
111
     */
112
    public function setAttributionText(string $attributionText)
113
    {
114
        $this->attributionText = $attributionText;
115
    }
116
117
    /**
118
     * @return string
119
     */
120
    public function getAttributionHTML()
121
    {
122
        return $this->attributionHTML;
123
    }
124
125
    /**
126
     * @param string $attributionHTML
127
     */
128
    public function setAttributionHTML(string $attributionHTML)
129
    {
130
        $this->attributionHTML = $attributionHTML;
131
    }
132
133
    /**
134
     * @return string
135
     */
136
    public function getEtag()
137
    {
138
        return $this->etag;
139
    }
140
141
    /**
142
     * @param string $etag
143
     */
144
    public function setEtag(string $etag)
145
    {
146
        $this->etag = $etag;
147
    }
148
}
149