Symfony\Component\Stopwatch\Section
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class Section
{
- // members
- private array $events;
- private null|float $origin;
- private string $id;
- private array $children;
- // methods
- public void __construct()
- public Section|null get()
- public Section open()
- public string getId()
- public Section setId()
- public StopwatchEvent startEvent()
- public bool isEventStarted()
- public StopwatchEvent stopEvent()
- public StopwatchEvent lap()
- public array getEvents()
Members
private
- $children — array
- $events — array
- $id — string
- $origin — Symfony\Component\Stopwatch\null|float
Methods
public
- __construct() — Constructor.
- get() — Returns the child section.
- getEvents() — Returns the events from this section.
- getId()
- isEventStarted() — Checks if the event was started
- lap() — Stops then restarts an event.
- open() — Creates or re-opens a child section.
- setId() — Sets the session identifier.
- startEvent() — Starts an event.
- stopEvent() — Stops an event.