Profile

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.

Profile 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)
string getUrl()

Returns the URL.

setUrl($url)
string getTime()

Returns the time.

setTime($time)
setStatusCode(int $statusCode)
int getStatusCode()
Profile[] getChildren()

Finds children profilers.

setChildren(array $children)

Sets children profiler.

addChild(Profile $child)

Adds the child token.

DataCollectorInterface getCollector(string $name)

Gets a Collector by name.

DataCollectorInterface[] 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()

Details

__construct(string $token)

Constructor.

Parameters

string $token The token

setToken(string $token)

Sets the token.

Parameters

string $token The token

string getToken()

Gets the token.

Return Value

string The token

setParent(Profile $parent)

Sets the parent token.

Parameters

Profile $parent The parent Profile

Profile getParent()

Returns the parent profile.

Return Value

Profile The parent profile

null|string getParentToken()

Returns the parent token.

Return Value

null|string The parent token

string getIp()

Returns the IP.

Return Value

string The IP

setIp(string $ip)

Sets the IP.

Parameters

string $ip

string getMethod()

Returns the request method.

Return Value

string The request method

setMethod($method)

Parameters

$method

string getUrl()

Returns the URL.

Return Value

string The URL

setUrl($url)

Parameters

$url

string getTime()

Returns the time.

Return Value

string The time

setTime($time)

Parameters

$time

setStatusCode(int $statusCode)

Parameters

int $statusCode

int getStatusCode()

Return Value

int

Profile[] getChildren()

Finds children profilers.

Return Value

Profile[] An array of Profile

setChildren(array $children)

Sets children profiler.

Parameters

array $children An array of Profile

addChild(Profile $child)

Adds the child token.

Parameters

Profile $child The child Profile

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

DataCollectorInterface[] getCollectors()

Gets the Collectors associated with this profile.

Return Value

DataCollectorInterface[]

setCollectors(array $collectors)

Sets the Collectors associated with this profile.

Parameters

array $collectors

addCollector(DataCollectorInterface $collector)

Adds a Collector.

Parameters

DataCollectorInterface $collector A DataCollectorInterface instance

bool hasCollector(string $name)

Returns true if a Collector for the given name exists.

Parameters

string $name A collector name

Return Value

bool

__sleep()

doc_Symfony
2016-10-28 06:27:13
Comments
Leave a Comment

Please login to continue.