Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/yandex.market/lib/error/ |
Upload File : |
<?php namespace Yandex\Market\Error; class Base { const XML_NODE_VALIDATE_EMPTY = 1; const XML_NODE_TAG_EMPTY = 2; const XML_NODE_HASH_COLLISION = 3; protected $code; protected $message; protected $customData; protected $isCritical = false; public function __construct($message, $code = 0, $customData = null) { $this->message = $message; $this->code = $code; $this->customData = $customData; } public function getCode() { return $this->code; } public function getMessage() { return $this->message; } public function getCustomData() { return $this->customData; } public function getUniqueKey() { return $this->code . '|' . $this->message; } public function __toString() { return $this->getMessage(); } public function isCritical() { return $this->isCritical; } public function markCritical() { $this->isCritical = true; } }