class User (View source)

Represents a user.

Properties

string $id

UUID v4.

string|null $email

Email of user.

string|null $apiKey

Api Key.

Methods

__construct(string $id, string|null $email, string|null $apiKey, UserApiKey[] $apiKeys = [])

Constructor.

static User
createFromJsonResponse(string $jsonString)

Create a user from the JSON data returned by the rokka.io API.

string
getId()

Get Id.

string|null
getEmail()

Get Email.

string|null
getApiKey()

Get Api Key.

array
getApiKeys()

No description

Details

__construct(string $id, string|null $email, string|null $apiKey, UserApiKey[] $apiKeys = [])

Constructor.

Parameters

string $id Id
string|null $email Email
string|null $apiKey

API keys

UserApiKey[] $apiKeys

API keys

static User createFromJsonResponse(string $jsonString)

Create a user from the JSON data returned by the rokka.io API.

Parameters

string $jsonString

JSON as a string

Return Value

User

string getId()

Get Id.

Return Value

string

string|null getEmail()

Get Email.

Return Value

string|null

string|null getApiKey()

Get Api Key.

Return Value

string|null

array getApiKeys()

No description

Return Value

array