File manager - Edit - /home/web/vm-3fadc827.na4u.ru/www/bitrix/modules/sale/lib/paysystem/clienttype.php
Back
<?php namespace Bitrix\Sale\PaySystem; /** * Client type for pay system */ abstract class ClientType { /** * Default value * * For example, if the value is not filled in the payment system */ public const DEFAULT = self::B2C; /** * The buyer is a individual */ public const B2C = 'b2c'; /** * The buyer is a legal entity */ public const B2B = 'b2b'; /** * Available client type values * * @return array */ public static function getAvailableValues(): array { return [ self::B2C, self::B2B, ]; } /** * Validation client type value * * @param string $value * @return bool true - if the $value matches the available case-sensitive values */ public static function isValid(string $value): bool { return in_array($value, self::getAvailableValues(), true); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.25 |
proxy
|
phpinfo
|
Settings