original_string: private function parse(\SimpleXMLElement $xmldata)
      {
          if (!isset($xmldata->title)) {
  
              throw new OpdsParserNoTitleException();
          }
  
          if ($xmldata->getName() === 'entry') {
  
              return $this->parseEntry($xmldata);
          }
  
          return $this->parseFeed($xmldata);
      }
code: private function parse(\SimpleXMLElement $xmldata)
      {
          if (!isset($xmldata->title)) {
  
              throw new OpdsParserNoTitleException();
          }
  
          if ($xmldata->getName() === 'entry') {
  
              return $this->parseEntry($xmldata);
          }
  
          return $this->parseFeed($xmldata);
      }
code_tokens: private function parse ( \ SimpleXMLElement $ xmldata ) { if ( ! isset ( $ xmldata -> title ) ) { throw new OpdsParserNoTitleException ( ) ; } if ( $ xmldata -> getName ( ) === 'entry' ) { return $ this -> parseEntry ( $ xmldata ) ; } return $ this -> parseFeed ( $ xmldata ) ; }
docstring: Parse an OPDS flux.
  
  @param \SimpleXMLElement $xmldata
  
  @return Feed|Publication
  @throws OpdsParserNoTitleException
docstring_tokens: Parse an OPDS flux .