UserConfiguration
extends AbstractEventRaisingEntity
in package
Class UserConfiguration
Table of Contents
- $key : UserConfigurationKey
- $raisedEvents : array<string|int, object>
- $userId : UserId
- $value : string
- changeValue() : void
- create() : UserConfiguration
- key() : string
- releaseEvents() : array<string|int, object>
- userId() : int
- value() : string
- raiseEvent() : void
- __construct() : mixed
- UserConfiguration constructor.
Properties
$key
private
UserConfigurationKey
$key
$raisedEvents
private
array<string|int, object>
$raisedEvents
= []
$userId
private
UserId
$userId
$value
private
string
$value
Methods
changeValue()
public
changeValue(string $newValue) : void
Parameters
- $newValue : string
Return values
void —create()
public
static create(UserId $userId, UserConfigurationKey $key, string $value) : UserConfiguration
Parameters
- $userId : UserId
- $key : UserConfigurationKey
- $value : string
Return values
UserConfiguration —key()
public
key() : string
Return values
string —releaseEvents()
public
releaseEvents() : array<string|int, object>
Return values
array<string|int, object> —userId()
public
userId() : int
Return values
int —value()
public
value() : string
Return values
string —raiseEvent()
protected
raiseEvent(object $event) : void
Parameters
- $event : object
Return values
void —__construct()
UserConfiguration constructor.
private
__construct(UserId $userId, UserConfigurationKey $key, string $value) : mixed
Parameters
- $userId : UserId
- $key : UserConfigurationKey
- $value : string