Section::stopEvent()

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

SecureRandom deprecated

class SecureRandom implements SecureRandomInterface deprecated since version 2.8, to be removed in 3.0. Use the random_bytes function instead A secure random number generator implementation. Methods string nextBytes(int $nbBytes) Generates the specified number of secure random bytes. Details string nextBytes(int $nbBytes) Generates the specified number of secure random bytes. Parameters int $nbBytes Return Value string

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

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

Section::isEventStarted()

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

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::getEvents()

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

Section::getId()

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

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

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