[TASK] Introduce SkillSet Verification

This commit is contained in:
Florian Weiss 2020-05-20 16:47:18 +02:00
parent 1ad35bd909
commit 14eef81363

View file

@ -16,9 +16,16 @@ class Issuer {
* @param string $vtype one of VERIFICATION_SELF, VERIFICATION_EDUCATIONAL, VERIFICATION_BUSINESS, VERIFICATION_CERTIFICATION * @param string $vtype one of VERIFICATION_SELF, VERIFICATION_EDUCATIONAL, VERIFICATION_BUSINESS, VERIFICATION_CERTIFICATION
* @return array * @return array
*/ */
private function generateSignedRequestData(int $skillID, string $useremail, string $vtype) : array { private function generateSignedRequestData(int $ID, string $useremail, string $vtype, bool $isSkillSet = false) : array {
if($isSkillSet){
$requestData['SkillSetId'] = $ID;
}
else{
$requestData['SkillId'] = $ID;
}
$requestData = [ $requestData = [
"SkillId" => $skillID,
"Level" => $vtype, "Level" => $vtype,
"VerifierId" => $this->settings->getVerifierID(), "VerifierId" => $this->settings->getVerifierID(),
"Username" => $useremail, "Username" => $useremail,