* @author Graham Campbell * @author James Brooks */ final class UserWasInvitedEvent implements UserEventInterface { /** * The invite that has been created. * * @var \CachetHQ\Cachet\Models\Invite */ public $invite; /** * Create a new user was invite event instance. * * @param \CachetHQ\Cachet\Models\Invite $invite * * @return void */ public function __construct(Invite $invite) { $this->invite = $invite; } /** * Get the event description. * * @return string */ public function __toString() { return 'User was invited.'; } }