/** * Загрузка данных заявки в форму. * * @param Lead $lead */ public function loadLead(Lead $lead) { $this->leadId = $lead->getLeadId(); $this->landingId = $lead->getLandingId(); $this->formId = $lead->getFormId(); $this->userId = $lead->getUserId(); $this->companyId = $lead->getCompanyId(); $this->status = $lead->getStatus(); $this->price = $lead->getPrice(); $this->data = json_decode($lead->getData(), true); }