Profiler\Profile (Component\HttpKernel)
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.
public setToken(string $token)
Sets the token.
public string getToken()
Gets the token.
public setParent(Profile $parent)
Sets the parent token.
public Profile getParent()
Returns the parent profile.
public null|string getParentToken()
Returns the parent token.
public string getIp()
Returns the IP.
public setIp(string $ip)
Sets the IP.
public string getMethod()
Returns the request method.
public setMethod($method)
public string getUrl()
Returns the URL.
public setUrl($url)
public string getTime()
Returns the time.
public setTime($time)
public setStatusCode(int $statusCode)
public int getStatusCode()
public Profile[] getChildren()
Finds children profilers.
public setChildren(array $children)
Sets children profiler.
public addChild(Profile $child)
Adds the child token.
public DataCollectorInterface getCollector(string $name)
Gets a Collector by name.
public DataCollectorInterface[] getCollectors()
Gets the Collectors associated with this profile.
public setCollectors(array $collectors)
Sets the Collectors associated with this profile.
public addCollector(DataCollectorInterface $collector)
Adds a Collector.
public bool hasCollector(string $name)
Returns true if a Collector for the given name exists.
public __sleep()
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/HttpKernel/Profiler/Profile.html