Your IP : 216.73.216.86


Current Path : /var/www/homesaver/www/bitrix/modules/messageservice/lib/Restriction/
Upload File :
Current File : /var/www/homesaver/www/bitrix/modules/messageservice/lib/Restriction/SmsPerIp.php

<?php

namespace Bitrix\MessageService\Restriction;

use Bitrix\Main\Context;

class SmsPerIp extends Base
{
	public function getEntityId(): string
	{
		return 'spip_' . $this->getEntity();
	}

	protected function getOptionLimitName(): string
	{
		return 'network_restriction_sms_per_ip';
	}

	protected function getEntity(): string
	{
		return (string)Context::getCurrent()->getServer()->getRemoteAddr();
	}

	protected function getDefaultLimit(): int
	{
		return 0;
	}
}