DuplicateBankDetailCriterion::equals

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. DuplicateBankDetailCriterion
  4. equals
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integrity/duplicatebankdetailcriterion.php
  • Класс: Bitrix\Crm\Integrity\DuplicateBankDetailCriterion
  • Вызов: DuplicateBankDetailCriterion::equals
public function equals(DuplicateCriterion $item)
{
	if(!($item instanceof DuplicateBankDetailCriterion))
	{
		return false;
	}

	/** @var DuplicateBankDetailCriterion $item */
	if($this->countryId !== $item->getCountryId())
	{
		return false;
	}

	if($this->fieldName !== $item->getFieldName())
	{
		return false;
	}

	return self::prepareCode($this->countryId, $this->fieldName, $this->value) ===
		self::prepareCode($this->countryId, $this->fieldName, $item->getValue());
}

Добавить комментарий