Copied!

Handler

Handler.php : 11

Methods

publiccountUserPreferences()

Handler.php : 48
public countUserPreferences(int $userId) : int

Parameters

Name Type Default value Description
$userId int - -

Return values

int

publicgetUserPreferenceByUserIdAndName()

Handler.php : 32

Get UserPreference by its user ID and name.

public getUserPreferenceByUserIdAndName(int $userId, string $name) : UserPreference

Parameters

Name Type Default value Description
$userId int - -
$name string - -

Return values

UserPreference

Tags
Throws
NotFoundException

If no value is found for given preference name.

publicloadUserPreferences()

Handler.php : 41
public loadUserPreferences(int $userId, int $offset, int $limit) : array<string|int, UserPreference>

Parameters

Name Type Default value Description
$userId int - -
$offset int - -
$limit int - -

Return values

array<string|int, UserPreference>

publicsetUserPreference()

Handler.php : 20

Store UserPreference ValueObject in persistent storage.

public setUserPreference(UserPreferenceSetStruct $setStruct) : UserPreference

Parameters

Name Type Default value Description
$setStruct UserPreferenceSetStruct - -

Return values

UserPreference