class Profile

Profile.

Methods

__construct(string $token)

Constructor.

setToken(string $token)

Sets the token.

string
getToken()

Gets the token.

setParent(Profile $parent)

Sets the parent token.

getParent()

Returns the parent profile.

null|string
getParentToken()

Returns the parent token.

string
getIp()

Returns the IP.

setIp(string $ip)

Sets the IP.

string
getMethod()

Returns the request method.

setMethod($method)

No description

string
getUrl()

Returns the URL.

setUrl($url)

No description

string
getTime()

Returns the time.

setTime($time)

No description

setStatusCode(int $statusCode)

No description

int
getStatusCode()

No description

getChildren()

Finds children profilers.

setChildren(array $children)

Sets children profiler.

addChild(Profile $child)

Adds the child token.

getCollector(string $name)

Gets a Collector by name.

getCollectors()

Gets the Collectors associated with this profile.

setCollectors(array $collectors)

Sets the Collectors associated with this profile.

addCollector(DataCollectorInterface $collector)

Adds a Collector.

bool
hasCollector(string $name)

Returns true if a Collector for the given name exists.

__sleep()

No description

Details

at line line 51
__construct(string $token)

Constructor.

Parameters

string $token The token

at line line 61
setToken(string $token)

Sets the token.

Parameters

string $token The token

at line line 71
string getToken()

Gets the token.

Return Value

string The token

at line line 81
setParent(Profile $parent)

Sets the parent token.

Parameters

Profile $parent The parent Profile

at line line 91
Profile getParent()

Returns the parent profile.

Return Value

Profile The parent profile

at line line 101
null|string getParentToken()

Returns the parent token.

Return Value

null|string The parent token

at line line 111
string getIp()

Returns the IP.

Return Value

string The IP

at line line 121
setIp(string $ip)

Sets the IP.

Parameters

string $ip

at line line 131
string getMethod()

Returns the request method.

Return Value

string The request method

at line line 136
setMethod($method)

Parameters

$method

at line line 146
string getUrl()

Returns the URL.

Return Value

string The URL

at line line 151
setUrl($url)

Parameters

$url

at line line 161
string getTime()

Returns the time.

Return Value

string The time

at line line 170
setTime($time)

Parameters

$time

at line line 178
setStatusCode(int $statusCode)

Parameters

int $statusCode

at line line 186
int getStatusCode()

Return Value

int

at line line 196
Profile[] getChildren()

Finds children profilers.

Return Value

Profile[] An array of Profile

at line line 206
setChildren(array $children)

Sets children profiler.

Parameters

array $children An array of Profile

at line line 219
addChild(Profile $child)

Adds the child token.

Parameters

Profile $child The child Profile

at line line 234
DataCollectorInterface getCollector(string $name)

Gets a Collector by name.

Parameters

string $name A collector name

Return Value

DataCollectorInterface A DataCollectorInterface instance

Exceptions

InvalidArgumentException if the collector does not exist

at line line 248
DataCollectorInterface[] getCollectors()

Gets the Collectors associated with this profile.

Return Value

DataCollectorInterface[]

at line line 258
setCollectors(array $collectors)

Sets the Collectors associated with this profile.

Parameters

array $collectors

at line line 271
addCollector(DataCollectorInterface $collector)

Adds a Collector.

Parameters

DataCollectorInterface $collector A DataCollectorInterface instance

at line line 283
bool hasCollector(string $name)

Returns true if a Collector for the given name exists.

Parameters

string $name A collector name

Return Value

bool

at line line 288
__sleep()