File manager - Edit - /home/web/vm-3fadc827.na4u.ru/www/bitrix/modules/sale/lib/delivery/internals/analytics/provider.php
Back
<?php namespace Bitrix\Sale\Delivery\Internals\Analytics; use Bitrix\Sale\Internals\Analytics; /** * Class Provider * @package Bitrix\Sale\Delivery\Internals\Analytics * @internal */ final class Provider extends Analytics\Provider { /** @var string */ private $code; /** @var array */ private $orders; /** * @param string $code * @param array $orders */ public function __construct(string $code, array $orders) { $this->code = $code; $this->orders = $orders; } /** * @inheritDoc */ public static function getCode(): string { return 'delivery'; } /** * @inheritDoc */ protected function needProvideData(): bool { return true; } /** * @inheritDoc */ protected function getProviderData(): array { if (!$this->orders) { return []; } return [ 'delivery' => $this->code, 'orders' => $this->orders, ]; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.28 |
proxy
|
phpinfo
|
Settings