original_string: public function stop()
      {
          if (!\count($this->started)) {
              throw new \LogicException('stop() called but start() has not been called before.');
          }
  
          $this->periods[] = new StopwatchPeriod(array_pop($this->started), $this->getNow(), $this->morePrecision);
  
          return $this;
      }
code: public function stop()
      {
          if (!\count($this->started)) {
              throw new \LogicException('stop() called but start() has not been called before.');
          }
  
          $this->periods[] = new StopwatchPeriod(array_pop($this->started), $this->getNow(), $this->morePrecision);
  
          return $this;
      }
code_tokens: public function stop ( ) { if ( ! \ count ( $ this -> started ) ) { throw new \ LogicException ( 'stop() called but start() has not been called before.' ) ; } $ this -> periods [ ] = new StopwatchPeriod ( array_pop ( $ this -> started ) , $ this -> getNow ( ) , $ this -> morePrecision ) ; return $ this ; }
docstring: Stops the last started event period.
  
  @return $this
  
  @throws \LogicException When stop() is called without a matching call to start()
docstring_tokens: Stops the last started event period .