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

Verification   A

Complexity

Total Complexity 13

Size/Duplication

Total Lines 167
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 4
Bugs 2 Features 2
Metric Value
c 4
b 2
f 2
dl 0
loc 167
ccs 0
cts 58
cp 0
rs 10
wmc 13
lcom 0
cbo 1

13 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getState() 0 4 1
A setState() 0 6 1
A getDetails() 0 4 1
A setDetails() 0 6 1
A getUin() 0 4 1
A setUin() 0 6 1
A getType() 0 4 1
A setType() 0 6 1
A getPossibleToCancel() 0 4 1
A setPossibleToCancel() 0 6 1
A getDate() 0 4 1
A setDate() 0 6 1
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