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 | * {@inheritdoc} |
||
72 | */ |
||
73 | protected $mappingClasses = [ |
||
74 | 'verification' => 'Yandex\Webmaster\Models\Verification', |
||
75 | 'crawling' => 'Yandex\Webmaster\Models\Crawling', |
||
76 | ]; |
||
77 | |||
78 | /** |
||
79 | * {@inheritdoc} |
||
80 | */ |
||
81 | protected $propNameMap = [ |
||
82 | 'lastAccess' => 'last-access', |
||
83 | 'urlCount' => 'url-count', |
||
84 | 'indexCount' => 'index-count', |
||
85 | 'urlErrors' => 'url-errors', |
||
86 | 'internalLinksCount' => 'internal-links-count', |
||
87 | 'linksCount' => 'links-count', |
||
88 | ]; |
||
89 | |||
90 | /** |
||
91 | * Host constructor. |
||
92 | * |
||
93 | * @param \SimpleXMLIterator $data |
||
94 | */ |
||
95 | public function __construct(\SimpleXMLIterator $data) |
||
99 | |||
100 | /** |
||
101 | * @return string|null |
||
102 | */ |
||
103 | public function getId() |
||
107 | |||
108 | /** |
||
109 | * @param string $id |
||
110 | * @return self |
||
111 | */ |
||
112 | public function setId($id) |
||
118 | |||
119 | /** |
||
120 | * @return string|null |
||
121 | */ |
||
122 | public function getHref() |
||
126 | |||
127 | /** |
||
128 | * @param string $href |
||
129 | * @return self |
||
130 | */ |
||
131 | public function setHref($href) |
||
137 | |||
138 | /** |
||
139 | * @return string|null |
||
140 | */ |
||
141 | public function getRel() |
||
145 | |||
146 | /** |
||
147 | * |
||
148 | * @param string $rel |
||
149 | * @return self |
||
150 | */ |
||
151 | public function setRel($rel) |
||
157 | |||
158 | /** |
||
159 | * @return string|null |
||
160 | */ |
||
161 | public function getName() |
||
165 | |||
166 | /** |
||
167 | * @param string $name |
||
168 | * @return self |
||
169 | */ |
||
170 | public function setName($name) |
||
176 | |||
177 | /** |
||
178 | * @return string|null |
||
179 | */ |
||
180 | public function getVerification() |
||
184 | |||
185 | /** |
||
186 | * @param Verification $verification |
||
187 | * @return self |
||
188 | */ |
||
189 | public function setVerification(Verification $verification) |
||
195 | |||
196 | /** |
||
197 | * @return Crawling|null |
||
198 | */ |
||
199 | public function getCrawling() |
||
203 | |||
204 | /** |
||
205 | * @param Crawling $crawling |
||
206 | * @return self |
||
207 | */ |
||
208 | public function setCrawling(Crawling $crawling) |
||
214 | |||
215 | /** |
||
216 | * @return string|null |
||
217 | */ |
||
218 | public function getVirused() |
||
222 | |||
223 | /** |
||
224 | * @param string $virused |
||
225 | * @return self |
||
226 | */ |
||
227 | public function setVirused($virused) |
||
233 | |||
234 | /** |
||
235 | * @return string |
||
236 | */ |
||
237 | public function getLastAccess() |
||
241 | |||
242 | /** |
||
243 | * @param string|null $lastAccess |
||
244 | * @return self |
||
245 | */ |
||
246 | public function setLastAccess($lastAccess) |
||
252 | |||
253 | /** |
||
254 | * @return string|null |
||
255 | */ |
||
256 | public function getTcy() |
||
260 | |||
261 | /** |
||
262 | * @param string $tcy |
||
263 | * @return self |
||
264 | */ |
||
265 | public function setTcy($tcy) |
||
271 | |||
272 | /** |
||
273 | * @return null |
||
274 | */ |
||
275 | public function getUrlCount() |
||
279 | |||
280 | /** |
||
281 | * @param string $urlCount |
||
282 | * @return self |
||
283 | */ |
||
284 | public function setUrlCount($urlCount) |
||
290 | |||
291 | /** |
||
292 | * @return string|null |
||
293 | */ |
||
294 | public function getIndexCount() |
||
298 | |||
299 | /** |
||
300 | * @param string $indexCount |
||
301 | * @return self |
||
302 | */ |
||
303 | public function setIndexCount($indexCount) |
||
309 | } |
||
310 |