• Модуль: seo
  • Путь к файлу: ~/bitrix/modules/seo/lib/leadads/response/formresponse.php
  • Класс: BitrixSeoLeadAdsResponseFormResponse
  • Вызов: FormResponse::__construct
public function __construct(FormBuilderInterface $formBuilder, Response... $responses)
{
	parent::__construct();

	$this->formBuilder = $formBuilder;
	$this->currentResponse = 0;
	$this->responseCount = count($responses);

	foreach ($responses as $response)
	{
		if (!$response->isSuccess())
		{
			$this->addErrors($response->getErrors());
		}
	}

	$this->data = array_values($responses);
}