Section::startEvent()

StopwatchEvent startEvent(string $name, string $category) Starts an event. Parameters string $name The event name string $category The event category Return Value StopwatchEvent The event

Section::setId()

Section setId(string $id) Sets the session identifier. Parameters string $id The session identifier Return Value Section The current section

Section::open()

Section open(string|null $id) Creates or re-opens a child section. Parameters string|null $id null to create a new section, the identifier to re-open an existing one Return Value Section A child section

Section::lap()

StopwatchEvent lap(string $name) Stops then restarts an event. Parameters string $name The event name Return Value StopwatchEvent The event Exceptions LogicException When the event has not been started

Section::isEventStarted()

bool isEventStarted(string $name) Checks if the event was started. Parameters string $name The event name Return Value bool

Section::getId()

string getId() Return Value string The identifier of the section

Section::getEvents()

StopwatchEvent[] getEvents() Returns the events from this section. Return Value StopwatchEvent[] An array of StopwatchEvent instances

Section::getEvent()

StopwatchEvent getEvent(string $name) Returns a specific event by name. Parameters string $name The event name Return Value StopwatchEvent The event Exceptions LogicException When the event is not known

Section

class Section Stopwatch section. Methods __construct(float|null $origin = null) Constructor. Section|null get(string $id) Returns the child section. Section open(string|null $id) Creates or re-opens a child section. string getId() Section setId(string $id) Sets the session identifier. StopwatchEvent startEvent(string $name, string $category) Starts an event. bool isEventStarted(string $name) Checks if the event was started. StopwatchEvent stopEvent(str

SecondTransformer::getReverseMatchingRegExp()

string getReverseMatchingRegExp(int $length) Returns a reverse matching regular expression of a string generated by format(). Parameters int $length The length of the value to be reverse matched Return Value string The reverse matching regular expression