|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace Yandex\Metrica\Management\Models; |
|
4
|
|
|
|
|
5
|
|
|
use Yandex\Common\Model; |
|
6
|
|
|
|
|
7
|
|
|
class Monitoring extends Model |
|
8
|
|
|
{ |
|
9
|
|
|
|
|
10
|
|
|
protected $enableMonitoring = null; |
|
11
|
|
|
|
|
12
|
|
|
protected $emails = null; |
|
13
|
|
|
|
|
14
|
|
|
protected $smsAllowed = null; |
|
15
|
|
|
|
|
16
|
|
|
protected $enableSms = null; |
|
17
|
|
|
|
|
18
|
|
|
protected $smsTime = null; |
|
19
|
|
|
|
|
20
|
|
|
protected $mappingClasses = []; |
|
21
|
|
|
|
|
22
|
|
|
protected $propNameMap = [ |
|
23
|
|
|
'enable_monitoring' => 'enableMonitoring', |
|
24
|
|
|
'sms_allowed' => 'smsAllowed', |
|
25
|
|
|
'enable_sms' => 'enableSms', |
|
26
|
|
|
'sms_time' => 'smsTime' |
|
27
|
|
|
]; |
|
28
|
|
|
|
|
29
|
|
|
/** |
|
30
|
|
|
* Retrieve the enableMonitoring property |
|
31
|
|
|
* |
|
32
|
|
|
* @return int|null |
|
33
|
|
|
*/ |
|
34
|
2 |
|
public function getEnableMonitoring() |
|
35
|
|
|
{ |
|
36
|
2 |
|
return $this->enableMonitoring; |
|
37
|
|
|
} |
|
38
|
|
|
|
|
39
|
|
|
/** |
|
40
|
|
|
* Set the enableMonitoring property |
|
41
|
|
|
* |
|
42
|
|
|
* @param int $enableMonitoring |
|
43
|
|
|
* @return $this |
|
44
|
|
|
*/ |
|
45
|
1 |
|
public function setEnableMonitoring($enableMonitoring) |
|
46
|
|
|
{ |
|
47
|
1 |
|
$this->enableMonitoring = $enableMonitoring; |
|
48
|
1 |
|
return $this; |
|
49
|
|
|
} |
|
50
|
|
|
|
|
51
|
|
|
/** |
|
52
|
|
|
* Retrieve the emails property |
|
53
|
|
|
* |
|
54
|
|
|
* @return array|null |
|
55
|
|
|
*/ |
|
56
|
2 |
|
public function getEmails() |
|
57
|
|
|
{ |
|
58
|
2 |
|
return $this->emails; |
|
59
|
|
|
} |
|
60
|
|
|
|
|
61
|
|
|
/** |
|
62
|
|
|
* Set the emails property |
|
63
|
|
|
* |
|
64
|
|
|
* @param array $emails |
|
65
|
|
|
* @return $this |
|
66
|
|
|
*/ |
|
67
|
1 |
|
public function setEmails($emails) |
|
68
|
|
|
{ |
|
69
|
1 |
|
$this->emails = $emails; |
|
70
|
1 |
|
return $this; |
|
71
|
|
|
} |
|
72
|
|
|
|
|
73
|
|
|
/** |
|
74
|
|
|
* Retrieve the smsAllowed property |
|
75
|
|
|
* |
|
76
|
|
|
* @return int|null |
|
77
|
|
|
*/ |
|
78
|
2 |
|
public function getSmsAllowed() |
|
79
|
|
|
{ |
|
80
|
2 |
|
return $this->smsAllowed; |
|
81
|
|
|
} |
|
82
|
|
|
|
|
83
|
|
|
/** |
|
84
|
|
|
* Set the smsAllowed property |
|
85
|
|
|
* |
|
86
|
|
|
* @param int $smsAllowed |
|
87
|
|
|
* @return $this |
|
88
|
|
|
*/ |
|
89
|
1 |
|
public function setSmsAllowed($smsAllowed) |
|
90
|
|
|
{ |
|
91
|
1 |
|
$this->smsAllowed = $smsAllowed; |
|
92
|
1 |
|
return $this; |
|
93
|
|
|
} |
|
94
|
|
|
|
|
95
|
|
|
/** |
|
96
|
|
|
* Retrieve the enableSms property |
|
97
|
|
|
* |
|
98
|
|
|
* @return int|null |
|
99
|
|
|
*/ |
|
100
|
2 |
|
public function getEnableSms() |
|
101
|
|
|
{ |
|
102
|
2 |
|
return $this->enableSms; |
|
103
|
|
|
} |
|
104
|
|
|
|
|
105
|
|
|
/** |
|
106
|
|
|
* Set the enableSms property |
|
107
|
|
|
* |
|
108
|
|
|
* @param int $enableSms |
|
109
|
|
|
* @return $this |
|
110
|
|
|
*/ |
|
111
|
1 |
|
public function setEnableSms($enableSms) |
|
112
|
|
|
{ |
|
113
|
1 |
|
$this->enableSms = $enableSms; |
|
114
|
1 |
|
return $this; |
|
115
|
|
|
} |
|
116
|
|
|
|
|
117
|
|
|
/** |
|
118
|
|
|
* Retrieve the smsTime property |
|
119
|
|
|
* |
|
120
|
|
|
* @return string|null |
|
121
|
|
|
*/ |
|
122
|
2 |
|
public function getSmsTime() |
|
123
|
|
|
{ |
|
124
|
2 |
|
return $this->smsTime; |
|
125
|
|
|
} |
|
126
|
|
|
|
|
127
|
|
|
/** |
|
128
|
|
|
* Set the smsTime property |
|
129
|
|
|
* |
|
130
|
|
|
* @param string $smsTime |
|
131
|
|
|
* @return $this |
|
132
|
|
|
*/ |
|
133
|
1 |
|
public function setSmsTime($smsTime) |
|
134
|
|
|
{ |
|
135
|
1 |
|
$this->smsTime = $smsTime; |
|
136
|
1 |
|
return $this; |
|
137
|
|
|
} |
|
138
|
|
|
} |
|
139
|
|
|
|