Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
responseyandex.php
1
<?php
2
3
namespace
Bitrix\Seo\Checkout\Services
;
4
5
use
Bitrix\Main\Error
;
6
use
Bitrix\Seo\Checkout\Response
;
7
13
class
ResponseYandex
extends
Response
14
{
15
const
TYPE_CODE
=
'yandex'
;
16
20
public
function
parse
($data)
21
{
22
if
(isset($data[
'errors'
]))
23
{
24
$this->addError(
new
Error
($data[
'errors'
][
'message'
], $data[
'errors'
][
'code'
]));
25
}
26
else
27
{
28
if
($data[
'data'
])
29
{
30
$this->setData($data[
'data'
]);
31
}
32
}
33
}
34
}
Bitrix\Main\Error
Definition
error.php:14
Bitrix\Main\Response
Definition
response.php:5
Bitrix\Seo\Checkout\Response
Definition
response.php:12
Bitrix\Seo\Checkout\Services\ResponseYandex
Definition
responseyandex.php:14
Bitrix\Seo\Checkout\Services\ResponseYandex\TYPE_CODE
const TYPE_CODE
Definition
responseyandex.php:15
Bitrix\Seo\Checkout\Services\ResponseYandex\parse
parse($data)
Definition
responseyandex.php:20
Bitrix\Seo\Checkout\Services
Definition
accountyandex.php:3
modules
seo
lib
checkout
services
responseyandex.php
Создано системой
1.10.0