User
in package
Table of Contents
Properties
- $experimentsBucket : Bucket
- $id : string
- $isReturning : bool
- $lastActivityAt : DateTime
- $pageviewCount : int
- $sessionCount : int
- $sessionId : string
- $sessionParams : SessionParams
- $trafficAllocationBucket : Bucket
- $variationsBucket : Bucket
Methods
- __construct() : mixed
- getExperimentsBucket() : mixed
- getId() : string
- getLastActivityAt() : mixed
- getPageviewCount() : mixed
- getSessionCount() : mixed
- getSessionId() : string
- Get the session id
- getSessionParams() : mixed
- getTrafficAllocationBucket() : mixed
- getVariationsBucket() : Bucket
- Get the variations bucket
- incrementPageviewCount() : mixed
- incrementSessionCount() : mixed
- isReturning() : bool
- Get the is returning
- setExperimentsBucket() : mixed
- setIsReturning() : void
- Set the is returning
- setLastActivityAt() : mixed
- setPageviewCount() : mixed
- setSessionCount() : mixed
- setSessionId() : void
- Set the session id
- setSessionParams() : mixed
- setTrafficAllocationBucket() : mixed
- setVariationsBucket() : void
- Set the variations bucket
Properties
$experimentsBucket
private
Bucket
$experimentsBucket
$id
private
string
$id
$isReturning
private
bool
$isReturning
= false
$lastActivityAt
private
DateTime
$lastActivityAt
$pageviewCount
private
int
$pageviewCount
$sessionCount
private
int
$sessionCount
$sessionId
private
string
$sessionId
$sessionParams
private
SessionParams
$sessionParams
$trafficAllocationBucket
private
Bucket
$trafficAllocationBucket
$variationsBucket
private
Bucket
$variationsBucket
Methods
__construct()
public
__construct(string $id) : mixed
Parameters
- $id : string
getExperimentsBucket()
public
getExperimentsBucket() : mixed
getId()
public
getId() : string
Return values
stringgetLastActivityAt()
public
getLastActivityAt() : mixed
getPageviewCount()
public
getPageviewCount() : mixed
getSessionCount()
public
getSessionCount() : mixed
getSessionId()
Get the session id
public
getSessionId() : string
Return values
stringgetSessionParams()
public
getSessionParams() : mixed
getTrafficAllocationBucket()
public
getTrafficAllocationBucket() : mixed
getVariationsBucket()
Get the variations bucket
public
getVariationsBucket() : Bucket
Return values
BucketincrementPageviewCount()
public
incrementPageviewCount() : mixed
incrementSessionCount()
public
incrementSessionCount() : mixed
isReturning()
Get the is returning
public
isReturning() : bool
Return values
boolsetExperimentsBucket()
public
setExperimentsBucket(Bucket $experimentsBucket) : mixed
Parameters
- $experimentsBucket : Bucket
setIsReturning()
Set the is returning
public
setIsReturning(bool $isReturning) : void
Parameters
- $isReturning : bool
setLastActivityAt()
public
setLastActivityAt(DateTime $lastActivityAt) : mixed
Parameters
- $lastActivityAt : DateTime
setPageviewCount()
public
setPageviewCount(int $pageviewCount) : mixed
Parameters
- $pageviewCount : int
setSessionCount()
public
setSessionCount(int $sessionCount) : mixed
Parameters
- $sessionCount : int
setSessionId()
Set the session id
public
setSessionId(string $sessionId) : void
Parameters
- $sessionId : string
setSessionParams()
public
setSessionParams(SessionParams $sessionParams) : mixed
Parameters
- $sessionParams : SessionParams
setTrafficAllocationBucket()
public
setTrafficAllocationBucket(Bucket $trafficAllocationBucket) : mixed
Parameters
- $trafficAllocationBucket : Bucket
setVariationsBucket()
Set the variations bucket
public
setVariationsBucket(Bucket $variationsBucket) : void
Parameters
- $variationsBucket : Bucket