public function getWatch($name = self::STOPWATCH_DEFAULT_NAME)
    {
        if (!array_key_exists($name, $this->timers)) {
            throw new \InvalidArgumentException('Watch ' . $name . ' does not exist.');
        }

        return $this->timers[$name];
    }
public function getWatch($name = self::STOPWATCH_DEFAULT_NAME)
    {
        if (!array_key_exists($name, $this->timers)) {
            throw new \InvalidArgumentException('Watch ' . $name . ' does not exist.');
        }

        return $this->timers[$name];
    }
public function getWatch ( $ name = self :: STOPWATCH_DEFAULT_NAME ) { if ( ! array_key_exists ( $ name , $ this -> timers ) ) { throw new \ InvalidArgumentException ( 'Watch ' . $ name . ' does not exist.' ) ; } return $ this -> timers [ $ name ] ; }
Get a watch by name of watch.

@param string $name Name of watch
@throws \InvalidArgumentException In case watch with name '$name' does not exist.
@return Timer A watch instance with name '$name'.
Get a watch by name of watch .