Skip to content
docsv0.1.0

TwitchUserInfo

Immutable DTO with user info returned by Twitch OAuth.

TwitchUserInfo::__construct()

public function __construct(string $id, string $login, string $displayName, ?string $email = null, ?string $profileImageUrl = null):

Parameters

Parameters of __construct()
NameTypeDescription
$idstring
$loginstring
$displayNamestring
$email?string
$profileImageUrl?string

TwitchUserInfo::toArray()

public function toArray(): array

Convert to a plain array using Twitch Helix API field names (snake_case).