original_string: public function get(string $name) : EventHandlerInterface
      {
          if (!isset($this->eventHandlers[$name])) {
              throw new \InvalidArgumentException(sprintf('DataGrid event handler %s not found', $name));
          }
  
          return $this->eventHandlers[$name];
      }
code: public function get(string $name) : EventHandlerInterface
      {
          if (!isset($this->eventHandlers[$name])) {
              throw new \InvalidArgumentException(sprintf('DataGrid event handler %s not found', $name));
          }
  
          return $this->eventHandlers[$name];
      }
code_tokens: public function get ( string $ name ) : EventHandlerInterface { if ( ! isset ( $ this -> eventHandlers [ $ name ] ) ) { throw new \ InvalidArgumentException ( sprintf ( 'DataGrid event handler %s not found' , $ name ) ) ; } return $ this -> eventHandlers [ $ name ] ; }
docstring: Returns chosen event handler by its function name
  
  @param $name
  
  @return EventHandlerInterface
  @throws \InvalidArgumentException
docstring_tokens: Returns chosen event handler by its function name