Overview

Namespaces

  • Yep
    • Stopwatch

Classes

  • Event
  • Formatter
  • Lap
  • Manager
  • Stopwatch

Exceptions

  • StopwatchAlreadyExistsException
  • StopwatchDoesntExistException
  • StopwatchEventDoesntExistException
  • StopwatchLapNotStartedException
  • Overview
  • Namespace
  • Class

Class Manager

Namespace: Yep\Stopwatch
Located at Manager.php
Methods summary
public
# addStopwatch( Yep\Stopwatch\Stopwatch $stopwatch )

Adds the stopwatch into the manager

Adds the stopwatch into the manager

Parameters

$stopwatch

Throws

Yep\Stopwatch\StopwatchAlreadyExistsException
public Yep\Stopwatch\Stopwatch
# getStopwatch( string $name, boolean $must_exist = true )

Returns the stopwatch from the manager if exists (or creates and adds new one)

Returns the stopwatch from the manager if exists (or creates and adds new one)

Parameters

$name
$must_exist

Returns

Yep\Stopwatch\Stopwatch

Throws

Yep\Stopwatch\StopwatchDoesntExistException
Yep\Stopwatch\StopwatchAlreadyExistsException
public boolean
# stopwatchExists( string $name )

Retuns true, if the stopwatch exists or false if not

Retuns true, if the stopwatch exists or false if not

Parameters

$name

Returns

boolean
public
# removeStopwatch( string $name )

Removes the stopwatch from the manager

Removes the stopwatch from the manager

Parameters

$name
public Yep\Stopwatch\Stopwatch[]
# getStopwatches( )

Returns all stopwatches

Returns all stopwatches

Returns

Yep\Stopwatch\Stopwatch[]
Properties summary
protected Yep\Stopwatch\Stopwatch[] $stopwatches
#
API documentation generated by ApiGen