Copied!

InvitationService

InvitationService.php : 13

Methods

publiccreateInvitation()

InvitationService.php : 21
public createInvitation(InvitationCreateStruct $createStruct) : Invitation

Parameters

Name Type Default value Description
$createStruct InvitationCreateStruct - -

Return values

Invitation

Tags
Throws
BadStateException
Throws
InvalidArgumentException
Throws
UnauthorizedException
Throws
JsonException

publicfindInvitations()

InvitationService.php : 42
public findInvitations([InvitationFilter|null $invitationsFilter = null ]) : array<string|int, Invitation>

Parameters

Name Type Default value Description
$invitationsFilter InvitationFilter|null null -

Return values

array<string|int, Invitation>

Tags
Throws
BadStateException
Throws
InvalidArgumentException
Throws
UnauthorizedException

publicgetInvitation()

InvitationService.php : 29
public getInvitation(string $hash) : Invitation

Parameters

Name Type Default value Description
$hash string - -

Return values

Invitation

publicgetInvitationByEmail()

InvitationService.php : 31
public getInvitationByEmail(string $email) : Invitation

Parameters

Name Type Default value Description
$email string - -

Return values

Invitation

publicisExpired()

InvitationService.php : 27
public isExpired(Invitation $invitation) : bool

Parameters

Name Type Default value Description
$invitation Invitation - -

Return values

bool

publicisValid()

InvitationService.php : 25
public isValid(Invitation $invitation) : bool

Parameters

Name Type Default value Description
$invitation Invitation - -

Return values

bool

publicmarkAsUsed()

InvitationService.php : 33
public markAsUsed(Invitation $invitation) : void

Parameters

Name Type Default value Description
$invitation Invitation - -

publicrefreshInvitation()

InvitationService.php : 44
public refreshInvitation(Invitation $invitation) : Invitation

Parameters

Name Type Default value Description
$invitation Invitation - -

Return values

Invitation