Stopwatch::lap()

StopwatchEvent lap(string $name) Stops then restarts an event. Parameters string $name The event name Return Value StopwatchEvent A StopwatchEvent instance

Stopwatch::isStarted()

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

Stopwatch::getSections()

Section[] getSections() Return Value Section[]

Stopwatch::getSectionEvents()

StopwatchEvent[] getSectionEvents(string $id) Gets all events for a given section. Parameters string $id A section identifier Return Value StopwatchEvent[] An array of StopwatchEvent instances

Stopwatch::getEvent()

StopwatchEvent getEvent(string $name) Returns a specific event by name. Parameters string $name The event name Return Value StopwatchEvent A StopwatchEvent instance

Stopwatch

class Stopwatch Stopwatch provides a way to profile code. Methods __construct() Section[] getSections() openSection(string|null $id = null) Creates a new section or re-opens an existing section. stopSection(string $id) Stops the last started section. StopwatchEvent start(string $name, string $category = null) Starts an event. bool isStarted(string $name) Checks if the event was started. StopwatchEvent stop(string $name) Stops an event. StopwatchEvent

StaticVersionStrategy::getVersion()

string getVersion(string $path) Returns the asset version for an asset. Parameters string $path A path Return Value string The version string

StaticVersionStrategy::applyVersion()

string applyVersion(string $path) Applies version to the supplied path. Parameters string $path A path Return Value string The versionized path

StaticVersionStrategy

class StaticVersionStrategy implements VersionStrategyInterface Returns the same version for all assets. Methods __construct(string $version, string $format = null) string getVersion(string $path) Returns the asset version for an asset. string applyVersion(string $path) Applies version to the supplied path. Details __construct(string $version, string $format = null) Parameters string $version Version number string $format Url format

StaticMethodLoader

class StaticMethodLoader implements LoaderInterface Loads validation metadata by calling a static method on the loaded class. Methods __construct(string $methodName = 'loadValidatorMetadata') Creates a new loader. bool loadClassMetadata(ClassMetadata $metadata) Loads validation metadata into a {@link ClassMetadata} instance. Details __construct(string $methodName = 'loadValidatorMetadata') Creates a new loader. Parameters string $method