Completed
Pull Request — master (#162)
by
unknown
06:39
created

Verification::setDetails()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 2
Bugs 1 Features 1
Metric Value
cc 1
eloc 3
c 2
b 1
f 1
nc 1
nop 1
dl 0
loc 6
ccs 0
cts 5
cp 0
crap 2
rs 9.4285
1
<?php
2
namespace Yandex\Webmaster\Models;
3
4
use Yandex\Common\Model;
5
6
/**
7
 * Class Verification
8
 *
9
 * @package Yandex\Webmaster\Models
10
 */
11
class Verification extends Model
12
{
13
    /**
14
     * @var string $state
15
     */
16
    protected $state = null;
17
    /**
18
     * @var string $details
19
     */
20
    protected $details = null;
21
22
    /**
23
     * @var string $uin
24
     */
25
    protected $uin = null;
26
    
27
    /**
28
     * @var string $type
29
     */
30
    protected $type = null;
31
32
    /**
33
     * @var string $possibleToCancel
34
     */
35
    protected $possibleToCancel = null;
36
37
    /**
38
     * @var string $date
39
     */
40
    protected $date = null;
41
42
    /**
43
     * {@inheritdoc}
44
     */
45
    protected $mappingClasses = [];
46
47
    /**
48
     * {@inheritdoc}
49
     */
50
    protected $propNameMap = [
51
        'possibleToCancel' => 'possible-to-cancel',
52
    ];
53
54
    /**
55
     * Verification constructor.
56
     *
57
     * @param \SimpleXMLIterator $data
58
     */
59
    public function __construct(\SimpleXMLIterator $data)
60
    {
61
        $this->fromXml($data);
62
    }
63
64
    /**
65
     * @return string|null
66
     */
67
    public function getState()
68
    {
69
        return $this->state;
70
    }
71
72
    /**
73
     * @param string $state
74
     * @return self
75
     */
76
    public function setState($state)
77
    {
78
        $this->state = $state;
79
80
        return $this;
81
    }
82
83
    /**
84
     * @return string|null
85
     */
86
    public function getDetails()
87
    {
88
        return $this->details;
89
    }
90
91
    /**
92
     * @param string $details
93
     * @return $this
94
     */
95
    public function setDetails($details)
96
    {
97
        $this->details = $details;
98
99
        return $this;
100
    }
101
    
102
    /**
103
     * @return string
104
     */
105
    public function getUin()
106
    {
107
        return $this->uin;
108
    }
109
110
    /**
111
     * @param string $uin
112
     * @return $this
113
     */
114
    public function setUin($uin)
115
    {
116
        $this->uin = $uin;
117
118
        return $this;
119
    }
120
    
121
    /**
122
     * @return string
123
     */
124
    public function getType()
125
    {
126
        return $this->type;
127
    }
128
129
    /**
130
     * @param string $type
131
     * @return $this
132
     */
133
    public function setType($type)
134
    {
135
        $this->type = $type;
136
137
        return $this;
138
    }
139
140
    /**
141
     * @return string
142
     */
143
    public function getPossibleToCancel()
144
    {
145
        return $this->possibleToCancel;
146
    }
147
148
    /**
149
     * @param string $possibleToCancel
150
     * @return $this
151
     */
152
    public function setPossibleToCancel($possibleToCancel)
153
    {
154
        $this->possibleToCancel = $possibleToCancel;
155
156
        return $this;
157
    }
158
159
    /**
160
     * @return string
161
     */
162
    public function getDate()
163
    {
164
        return $this->date;
165
    }
166
167
    /**
168
     * @param string $date
169
     * @return $this
170
     */
171
    protected function setDate($date)
172
    {
173
        $this->date = $date;
174
175
        return $this;
176
    }
177
}
178