private function parse(\SimpleXMLElement $xmldata)
    {
        if (!isset($xmldata->title)) {

            throw new OpdsParserNoTitleException();
        }

        if ($xmldata->getName() === 'entry') {

            return $this->parseEntry($xmldata);
        }

        return $this->parseFeed($xmldata);
    }
private function parse(\SimpleXMLElement $xmldata)
    {
        if (!isset($xmldata->title)) {

            throw new OpdsParserNoTitleException();
        }

        if ($xmldata->getName() === 'entry') {

            return $this->parseEntry($xmldata);
        }

        return $this->parseFeed($xmldata);
    }
private function parse ( \ SimpleXMLElement $ xmldata ) { if ( ! isset ( $ xmldata -> title ) ) { throw new OpdsParserNoTitleException ( ) ; } if ( $ xmldata -> getName ( ) === 'entry' ) { return $ this -> parseEntry ( $ xmldata ) ; } return $ this -> parseFeed ( $ xmldata ) ; }
Parse an OPDS flux.

@param \SimpleXMLElement $xmldata

@return Feed|Publication
@throws OpdsParserNoTitleException
Parse an OPDS flux .