class Profile
Profile.
__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() |
string | $token |
Sets the token.
string | $token | The token |
Gets the token.
string | The token |
Sets the parent token.
Profile | $parent |
Returns the parent profile.
Profile |
Returns the parent token.
string|null | The parent token |
Returns the IP.
string | The IP |
Sets the IP.
string | $ip |
Returns the request method.
string | The request method |
$method |
Returns the URL.
string | The URL |
$url |
Returns the time.
int | The time |
int | $time | The time |
int | $statusCode |
int |
Finds children profilers.
Profile[] |
Sets children profiler.
array | $children |
Adds the child token.
Profile | $child |
string | $token |
Profile|null |
Gets a Collector by name.
string | $name | A collector name |
DataCollectorInterface | A DataCollectorInterface instance |
InvalidArgumentException | if the collector does not exist |
Gets the Collectors associated with this profile.
DataCollectorInterface[] |
Sets the Collectors associated with this profile.
array | $collectors |
Adds a Collector.
DataCollectorInterface | $collector |
Returns true if a Collector for the given name exists.
string | $name | A collector name |
bool |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/HttpKernel/Profiler/Profile.html