original_string: public function get($key)
      {
          if ($this->has($key) === false) {
              throw new \RuntimeException(sprintf('Element with key: "%s" not found.', $key));
          }
  
          return $this->elements[$key];
      }
code: public function get($key)
      {
          if ($this->has($key) === false) {
              throw new \RuntimeException(sprintf('Element with key: "%s" not found.', $key));
          }
  
          return $this->elements[$key];
      }
code_tokens: public function get ( $ key ) { if ( $ this -> has ( $ key ) === false ) { throw new \ RuntimeException ( sprintf ( 'Element with key: "%s" not found.' , $ key ) ) ; } return $ this -> elements [ $ key ] ; }
docstring: Gets a element from the collection.
  
  @param string $key The element identifier
  
  @return mixed The element
  
  @throws RuntimeException If the key is not defined
docstring_tokens: Gets a element from the collection .