| Current Path : /var/www/homesaver/www/bitrix/modules/sale/lib/exchange/integration/restview/ |
| Current File : /var/www/homesaver/www/bitrix/modules/sale/lib/exchange/integration/restview/statisticprovider.php |
<?php
namespace Bitrix\Sale\Exchange\Integration\RestView;
use Bitrix\Rest\Integration\View\Attributes;
use Bitrix\Rest\Integration\View\Base;
use Bitrix\Rest\Integration\View\DataType;
final class StatisticProvider extends Base
{
public function getFields()
{
return [
'ID'=>[
'TYPE'=>DataType::TYPE_INT,
'ATTRIBUTES'=>[
Attributes::READONLY
]
],
'NAME'=>[
'TYPE'=>DataType::TYPE_STRING,
'ATTRIBUTES'=>[
Attributes::REQUIRED
]
],
'EXTERNAL_SERVER_HOST'=>[
'TYPE'=>DataType::TYPE_STRING,
'ATTRIBUTES'=>[
Attributes::REQUIRED
]
],
'XML_ID'=>[
'TYPE'=>DataType::TYPE_STRING,
'ATTRIBUTES'=>[
Attributes::REQUIRED
]
],
'SETTINGS'=>[
'TYPE'=>DataType::TYPE_STRING
]
];
}
}