Symfony2 API
Class

Symfony\Component\HttpKernel\Profiler\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)

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.

Boolean hasCollector(string $name)

Returns true if a Collector for the given name exists.

__sleep()

Details

at line 50
public __construct(string $token)

Constructor.

Parameters

string $token The token

at line 60
public setToken(string $token)

Sets the token.

Parameters

string $token The token

at line 70
public string getToken()

Gets the token.

Return Value

string The token

at line 80
public setParent(Profile $parent)

Sets the parent token

Parameters

Profile $parent The parent Profile

at line 90
public Profile getParent()

Returns the parent profile.

Return Value

Profile The parent profile

at line 100
public null|string getParentToken()

Returns the parent token.

Return Value

null|string The parent token

at line 110
public string getIp()

Returns the IP.

Return Value

string The IP

at line 120
public setIp(string $ip)

Sets the IP.

Parameters

string $ip

at line 130
public string getMethod()

Returns the request method.

Return Value

string The request method

at line 135
public setMethod($method)

Parameters

$method

at line 145
public string getUrl()

Returns the URL.

Return Value

string The URL

at line 150
public setUrl($url)

Parameters

$url

at line 160
public string getTime()

Returns the time.

Return Value

string The time

at line 169
public setTime($time)

Parameters

$time

at line 179
public Profile[] getChildren()

Finds children profilers.

Return Value

Profile[] An array of Profile

at line 189
public setChildren(array $children)

Sets children profiler.

Parameters

array $children An array of Profile

at line 202
public addChild(Profile $child)

Adds the child token

Parameters

Profile $child The child Profile

at line 217
public 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 231
public DataCollectorInterface[] getCollectors()

Gets the Collectors associated with this profile.

Return Value

DataCollectorInterface[]

at line 241
public setCollectors(array $collectors)

Sets the Collectors associated with this profile.

Parameters

array $collectors

at line 254
public addCollector(DataCollectorInterface $collector)

Adds a Collector.

Parameters

DataCollectorInterface $collector A DataCollectorInterface instance

at line 266
public Boolean hasCollector(string $name)

Returns true if a Collector for the given name exists.

Parameters

string $name A collector name

Return Value

Boolean

at line 271
public __sleep()