• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/entity/validator/regexp.php
  • Класс: BitrixMainEntityValidatorRegExp
  • Вызов: RegExp::__construct
public function __construct($pattern, $errorPhrase = null)
{
	if (!is_string($pattern))
	{
		throw new ArgumentTypeException('pattern', 'string');
	}

	$this->pattern = $pattern;

	parent::__construct($errorPhrase);
}