Skip to content

Commit

Permalink
master
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Zarubin committed Jun 22, 2022
1 parent 121edf4 commit 963c1d6
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions models/response/Certificate.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,4 +254,24 @@ public function getDocumentById(string $documentId): ?Document
}
return null;
}



/**
* Получить значение поля анкеты, если оно существует (и если значение задано)
*
*
* @param string $fieldId ID поля
* @return mixed|null
*/
public function getFieldValue(string $fieldId): mixed
{
foreach ($this->fields as $field) {
if ($field->id == $fieldId) {
return $field->value;
}
}

return null;
}
}

0 comments on commit 963c1d6

Please sign in to comment.