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/SmsPerPhone.php

<?php

namespace Bitrix\MessageService\Restriction;

class SmsPerPhone extends Base
{

	public function getEntityId(): string
	{
		return 'spp_' . $this->getEntity();
	}

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

	protected function getEntity(): string
	{
		return $this->message->getTo();
	}

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