W3cubDocs

/Symfony 4.1

Profile

class Profile

Profile.

Methods

__construct(string $token)
setToken(string $token)

Sets the token.

string getToken()

Gets the token.

setParent(Profile $parent)

Sets the parent token.

Profile getParent()

Returns the parent profile.

string|null 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)
int getTime()

Returns the time.

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

Finds children profilers.

setChildren(array $children)

Sets children profiler.

addChild(Profile $child)

Adds the child token.

Profile|null getChildByToken(string $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)

Parameters

string $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

Profile getParent()

Returns the parent profile.

Return Value

Profile

string|null getParentToken()

Returns the parent token.

Return Value

string|null 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

int getTime()

Returns the time.

Return Value

int The time

setTime(int $time)

Parameters

int $time The time

setStatusCode(int $statusCode)

Parameters

int $statusCode

int getStatusCode()

Return Value

int

Profile[] getChildren()

Finds children profilers.

Return Value

Profile[]

setChildren(array $children)

Sets children profiler.

Parameters

array $children

addChild(Profile $child)

Adds the child token.

Parameters

Profile $child

Profile|null getChildByToken(string $token)

Parameters

string $token

Return Value

Profile|null

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

bool hasCollector(string $name)

Returns true if a Collector for the given name exists.

Parameters

string $name A collector name

Return Value

bool

__sleep()

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/HttpKernel/Profiler/Profile.html