original_string: public function getEvent($name)
      {
          if (!isset($this->events[$name])) {
              throw new \LogicException(sprintf('Event "%s" is not known.', $name));
          }
  
          return $this->events[$name];
      }
code: public function getEvent($name)
      {
          if (!isset($this->events[$name])) {
              throw new \LogicException(sprintf('Event "%s" is not known.', $name));
          }
  
          return $this->events[$name];
      }
code_tokens: public function getEvent ( $ name ) { if ( ! isset ( $ this -> events [ $ name ] ) ) { throw new \ LogicException ( sprintf ( 'Event "%s" is not known.' , $ name ) ) ; } return $ this -> events [ $ name ] ; }
docstring: Returns a specific event by name.
  
  @param string $name The event name
  
  @return StopwatchEvent The event
  
  @throws \LogicException When the event is not known
docstring_tokens: Returns a specific event by name .