Completed
Pull Request — master (#161)
by
unknown
07:58
created

Verification   A

Complexity

Total Complexity 11

Size/Duplication

Total Lines 129
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 129
rs 10
wmc 11
lcom 0
cbo 1

11 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getState() 0 4 1
A setState() 0 4 1
A getDetails() 0 4 1
A setDetails() 0 4 1
A getType() 0 4 1
A setType() 0 4 1
A getPossibleToCancel() 0 4 1
A setPossibleToCancel() 0 4 1
A getDate() 0 4 1
A setDate() 0 4 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 $type
24
     */
25
    protected $type = null;
26
27
    /**
28
     * @var string $possibleToCancel
29
     */
30
    protected $possibleToCancel = null;
31
32
    /**
33
     * @var string $date
34
     */
35
    protected $date = null;
36
37
    /**
38
     * {@inheritdoc}
39
     */
40
    protected $mappingClasses = [];
41
42
    /**
43
     * {@inheritdoc}
44
     */
45
    protected $propNameMap = [
46
        'state' => 'state',
47
        'details' => 'details',
48
    ];
49
50
    /**
51
     * Verification constructor.
52
     *
53
     * @param \SimpleXMLIterator $data
54
     */
55
    public function __construct(\SimpleXMLIterator $data)
56
    {
57
        $this->fromXml($data);
58
    }
59
60
    /**
61
     * @return string|null
62
     */
63
    public function getState()
64
    {
65
        return $this->state;
66
    }
67
68
    /**
69
     * @param string $state
70
     */
71
    protected function setState($state)
72
    {
73
        $this->state = $state;
74
    }
75
76
    /**
77
     * @return string|null
78
     */
79
    public function getDetails()
80
    {
81
        return $this->details;
82
    }
83
84
    /**
85
     * @param string $details
86
     */
87
    protected function setDetails($details)
88
    {
89
        $this->details = $details;
90
    }
91
92
    /**
93
     * @return string
94
     */
95
    public function getType()
96
    {
97
        return $this->type;
98
    }
99
100
    /**
101
     * @param string $type
102
     */
103
    protected function setType($type)
104
    {
105
        $this->type = $type;
106
    }
107
108
    /**
109
     * @return string
110
     */
111
    public function getPossibleToCancel()
112
    {
113
        return $this->possibleToCancel;
114
    }
115
116
    /**
117
     * @param string $possibleToCancel
118
     */
119
    protected function setPossibleToCancel($possibleToCancel)
120
    {
121
        $this->possibleToCancel = $possibleToCancel;
122
    }
123
124
    /**
125
     * @return string
126
     */
127
    public function getDate()
128
    {
129
        return $this->date;
130
    }
131
132
    /**
133
     * @param string $date
134
     */
135
    protected function setDate($date)
136
    {
137
        $this->date = $date;
138
    }
139
}
140