1 | <?php |
||
11 | class Host extends Model |
||
12 | { |
||
13 | /** |
||
14 | * @var string $id |
||
15 | */ |
||
16 | protected $id = null; |
||
17 | /** |
||
18 | * @var string $href |
||
19 | */ |
||
20 | protected $href = null; |
||
21 | /** |
||
22 | * @var string $rel |
||
23 | */ |
||
24 | protected $rel = null; |
||
25 | /** |
||
26 | * @var string $name |
||
27 | */ |
||
28 | protected $name = null; |
||
29 | /** |
||
30 | * @var Verification $verification |
||
31 | */ |
||
32 | protected $verification = null; |
||
33 | /** |
||
34 | * @var Crawling $crawling |
||
35 | */ |
||
36 | protected $crawling = null; |
||
37 | /** |
||
38 | * @var string $virused |
||
39 | */ |
||
40 | protected $virused = null; |
||
41 | /** |
||
42 | * @var string $lastAccess |
||
43 | */ |
||
44 | protected $lastAccess = null; |
||
45 | /** |
||
46 | * @var string $tcy |
||
47 | */ |
||
48 | protected $tcy = null; |
||
49 | /** |
||
50 | * @var string $urlCount |
||
51 | */ |
||
52 | protected $urlCount = null; |
||
53 | /** |
||
54 | * @var string $indexCount |
||
55 | */ |
||
56 | protected $indexCount = null; |
||
57 | /** |
||
58 | * @var string $urlErrors |
||
59 | */ |
||
60 | protected $urlErrors = null; |
||
61 | /** |
||
62 | * @var string $internalLinksCount |
||
63 | */ |
||
64 | protected $internalLinksCount = null; |
||
65 | /** |
||
66 | * @var string $linksCount |
||
67 | */ |
||
68 | protected $linksCount = null; |
||
69 | |||
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | */ |
||
74 | protected $mappingClasses = [ |
||
75 | 'verification' => 'Yandex\Webmaster\Models\Verification', |
||
76 | 'crawling' => 'Yandex\Webmaster\Models\Crawling', |
||
77 | ]; |
||
78 | |||
79 | /** |
||
80 | * {@inheritdoc} |
||
81 | */ |
||
82 | protected $propNameMap = [ |
||
83 | 'id' => 'id', |
||
84 | 'href' => 'href', |
||
85 | 'rel' => 'rel', |
||
86 | 'name' => 'name', |
||
87 | 'verification' => 'verification', |
||
88 | 'crawling' => 'crawling', |
||
89 | 'virused' => 'virused', |
||
90 | 'lastAccess' => 'last-access', |
||
91 | 'tcy' => 'tcy', |
||
92 | 'urlCount' => 'url-count', |
||
93 | 'indexCount' => 'index-count', |
||
94 | 'urlErrors' => 'url-errors', |
||
95 | 'internalLinksCount' => 'internal-links-count', |
||
96 | 'linksCount' => 'links-count', |
||
97 | ]; |
||
98 | |||
99 | /** |
||
100 | * Host constructor. |
||
101 | * |
||
102 | * @param \SimpleXMLIterator $data |
||
103 | */ |
||
104 | public function __construct(\SimpleXMLIterator $data) |
||
108 | |||
109 | /** |
||
110 | * @return string|null |
||
111 | */ |
||
112 | public function getId() |
||
116 | |||
117 | /** |
||
118 | * @param string $id |
||
119 | * @return self |
||
120 | */ |
||
121 | protected function setId($id) |
||
127 | |||
128 | /** |
||
129 | * @return string|null |
||
130 | */ |
||
131 | public function getHref() |
||
135 | |||
136 | /** |
||
137 | * @param string $href |
||
138 | * @return self |
||
139 | */ |
||
140 | protected function setHref($href) |
||
146 | |||
147 | /** |
||
148 | * @return string|null |
||
149 | */ |
||
150 | public function getRel() |
||
154 | |||
155 | /** |
||
156 | * |
||
157 | * @param string $rel |
||
158 | * @return self |
||
159 | */ |
||
160 | protected function setRel($rel) |
||
166 | |||
167 | /** |
||
168 | * @return string|null |
||
169 | */ |
||
170 | public function getName() |
||
174 | |||
175 | /** |
||
176 | * @param string $name |
||
177 | * @return self |
||
178 | */ |
||
179 | protected function setName($name) |
||
185 | |||
186 | /** |
||
187 | * @return string|null |
||
188 | */ |
||
189 | public function getVerification() |
||
193 | |||
194 | /** |
||
195 | * @param Verification $verification |
||
196 | * @return self |
||
197 | */ |
||
198 | protected function setVerification(Verification $verification) |
||
204 | |||
205 | /** |
||
206 | * @return Crawling|null |
||
207 | */ |
||
208 | public function getCrawling() |
||
212 | |||
213 | /** |
||
214 | * @param Crawling $crawling |
||
215 | * @return self |
||
216 | */ |
||
217 | protected function setCrawling(Crawling $crawling) |
||
223 | |||
224 | /** |
||
225 | * @return string|null |
||
226 | */ |
||
227 | public function getVirused() |
||
231 | |||
232 | /** |
||
233 | * @param string $virused |
||
234 | * @return self |
||
235 | */ |
||
236 | protected function setVirused($virused) |
||
242 | |||
243 | /** |
||
244 | * @return string |
||
245 | */ |
||
246 | public function getLastAccess() |
||
250 | |||
251 | /** |
||
252 | * @param string|null $lastAccess |
||
253 | * @return self |
||
254 | */ |
||
255 | protected function setLastAccess($lastAccess) |
||
261 | |||
262 | /** |
||
263 | * @return string|null |
||
264 | */ |
||
265 | public function getTcy() |
||
269 | |||
270 | /** |
||
271 | * @param string $tcy |
||
272 | * @return self |
||
273 | */ |
||
274 | protected function setTcy($tcy) |
||
280 | |||
281 | /** |
||
282 | * @return null |
||
283 | */ |
||
284 | public function getUrlCount() |
||
288 | |||
289 | /** |
||
290 | * @param string $urlCount |
||
291 | * @return self |
||
292 | */ |
||
293 | protected function setUrlCount($urlCount) |
||
299 | |||
300 | /** |
||
301 | * @return string|null |
||
302 | */ |
||
303 | public function getIndexCount() |
||
307 | |||
308 | /** |
||
309 | * @param string $indexCount |
||
310 | * @return self |
||
311 | */ |
||
312 | protected function setIndexCount($indexCount) |
||
318 | } |
||
319 |