W3cubDocs

/Symfony 3.0

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)
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

public __construct(string $token)

Constructor.

Parameters

string $token The token

public setToken(string $token)

Sets the token.

Parameters

string $token The token

public string getToken()

Gets the token.

Return Value

string The token

public setParent(Profile $parent)

Sets the parent token.

Parameters

Profile $parent The parent Profile

public Profile getParent()

Returns the parent profile.

Return Value

Profile The parent profile

public null|string getParentToken()

Returns the parent token.

Return Value

null|string The parent token

public string getIp()

Returns the IP.

Return Value

string The IP

public setIp(string $ip)

Sets the IP.

Parameters

string $ip

public string getMethod()

Returns the request method.

Return Value

string The request method

public setMethod($method)

Parameters

$method

public string getUrl()

Returns the URL.

Return Value

string The URL

public setUrl($url)

Parameters

$url

public string getTime()

Returns the time.

Return Value

string The time

public setTime($time)

Parameters

$time

public setStatusCode(int $statusCode)

Parameters

int $statusCode

public int getStatusCode()

Return Value

int

public Profile[] getChildren()

Finds children profilers.

Return Value

Profile[] An array of Profile

public setChildren(array $children)

Sets children profiler.

Parameters

array $children An array of Profile

public addChild(Profile $child)

Adds the child token.

Parameters

Profile $child The child Profile

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

public DataCollectorInterface[] getCollectors()

Gets the Collectors associated with this profile.

Return Value

DataCollectorInterface[]

public setCollectors(array $collectors)

Sets the Collectors associated with this profile.

Parameters

array $collectors

public addCollector(DataCollectorInterface $collector)

Adds a Collector.

Parameters

DataCollectorInterface $collector A DataCollectorInterface instance

public bool hasCollector(string $name)

Returns true if a Collector for the given name exists.

Parameters

string $name A collector name

Return Value

bool

public __sleep()

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/HttpKernel/Profiler/Profile.html