[UW-2256] moves token property to BaseParticipant

This commit is contained in:
Michał Frankiewicz
2020-07-08 08:55:14 +02:00
parent 7551f6db95
commit c8ffcafbd8
3 changed files with 22 additions and 17 deletions

View File

@@ -28,6 +28,10 @@ class ParticipantShort extends BaseParticipant
$this->id = (int)$value;
break;
case 'token':
$this->token = trim($value);
break;
case 'participant_info':
$this->firstName = trim($value['firstname']);
$this->lastName = trim($value['lastname']);
@@ -52,6 +56,7 @@ class ParticipantShort extends BaseParticipant
$data = [
'tid' => $participant->getId(),
'token' => $participant->getToken(),
'participant_info' => $info,
];