Profile
in package
Profile.
Tags
Table of Contents
Properties
- $children : array<string|int, Profile>
- $collectors : array<string|int, DataCollectorInterface>
- $ip : string|null
- $method : string|null
- $parent : self|null
- $statusCode : int|null
- $time : int|null
- $token : string
- $url : string|null
Methods
- __construct() : mixed
- __sleep() : array<string|int, mixed>
- addChild() : mixed
- Adds the child token.
- addCollector() : mixed
- Adds a Collector.
- getChildByToken() : self|null
- getChildren() : array<string|int, self>
- Finds children profilers.
- getCollector() : DataCollectorInterface
- Gets a Collector by name.
- getCollectors() : array<string|int, DataCollectorInterface>
- Gets the Collectors associated with this profile.
- getIp() : string|null
- Returns the IP.
- getMethod() : string|null
- Returns the request method.
- getParent() : self|null
- Returns the parent profile.
- getParentToken() : string|null
- Returns the parent token.
- getStatusCode() : int|null
- getTime() : int
- getToken() : string
- Gets the token.
- getUrl() : string|null
- Returns the URL.
- hasCollector() : bool
- setChildren() : mixed
- Sets children profiler.
- setCollectors() : mixed
- Sets the Collectors associated with this profile.
- setIp() : mixed
- setMethod() : mixed
- setParent() : mixed
- Sets the parent token.
- setStatusCode() : mixed
- setTime() : mixed
- setToken() : mixed
- setUrl() : mixed
Properties
$children
private
array<string|int, Profile>
$children
= []
$collectors
private
array<string|int, DataCollectorInterface>
$collectors
= []
$ip
private
string|null
$ip
= null
$method
private
string|null
$method
= null
$parent
private
self|null
$parent
= null
$statusCode
private
int|null
$statusCode
= null
$time
private
int|null
$time
= null
$token
private
string
$token
$url
private
string|null
$url
= null
Methods
__construct()
public
__construct(string $token) : mixed
Parameters
- $token : string
__sleep()
public
__sleep() : array<string|int, mixed>
Return values
array<string|int, mixed>addChild()
Adds the child token.
public
addChild(self $child) : mixed
Parameters
- $child : self
addCollector()
Adds a Collector.
public
addCollector(DataCollectorInterface $collector) : mixed
Parameters
- $collector : DataCollectorInterface
getChildByToken()
public
getChildByToken(string $token) : self|null
Parameters
- $token : string
Return values
self|nullgetChildren()
Finds children profilers.
public
getChildren() : array<string|int, self>
Return values
array<string|int, self>getCollector()
Gets a Collector by name.
public
getCollector(string $name) : DataCollectorInterface
Parameters
- $name : string
Tags
Return values
DataCollectorInterfacegetCollectors()
Gets the Collectors associated with this profile.
public
getCollectors() : array<string|int, DataCollectorInterface>
Return values
array<string|int, DataCollectorInterface>getIp()
Returns the IP.
public
getIp() : string|null
Return values
string|nullgetMethod()
Returns the request method.
public
getMethod() : string|null
Return values
string|nullgetParent()
Returns the parent profile.
public
getParent() : self|null
Return values
self|nullgetParentToken()
Returns the parent token.
public
getParentToken() : string|null
Return values
string|nullgetStatusCode()
public
getStatusCode() : int|null
Return values
int|nullgetTime()
public
getTime() : int
Return values
intgetToken()
Gets the token.
public
getToken() : string
Return values
stringgetUrl()
Returns the URL.
public
getUrl() : string|null
Return values
string|nullhasCollector()
public
hasCollector(string $name) : bool
Parameters
- $name : string
Return values
boolsetChildren()
Sets children profiler.
public
setChildren(array<string|int, Profile> $children) : mixed
Parameters
- $children : array<string|int, Profile>
setCollectors()
Sets the Collectors associated with this profile.
public
setCollectors(array<string|int, DataCollectorInterface> $collectors) : mixed
Parameters
- $collectors : array<string|int, DataCollectorInterface>
setIp()
public
setIp(string|null $ip) : mixed
Parameters
- $ip : string|null
setMethod()
public
setMethod(string $method) : mixed
Parameters
- $method : string
setParent()
Sets the parent token.
public
setParent(self $parent) : mixed
Parameters
- $parent : self
setStatusCode()
public
setStatusCode(int $statusCode) : mixed
Parameters
- $statusCode : int
setTime()
public
setTime(int $time) : mixed
Parameters
- $time : int
setToken()
public
setToken(string $token) : mixed
Parameters
- $token : string
setUrl()
public
setUrl(string|null $url) : mixed
Parameters
- $url : string|null