23 if (!$result->isSuccess())
25 foreach ($result->getErrorCollection() as $index => $error)
27 $this->errorCollection[] = $error;
31 $resultData = $result->getData();
32 $numeratorType =
null;
33 if (!empty($resultData) && !empty($resultData[
'TYPE']))
35 $numeratorType = $resultData[
'TYPE'];
37 return [
'id' => $id = $result->getId(),
'type' => $numeratorType];