public function getPreview($parserId)
    {
        if (array_key_exists($parserId, $this->getParsers())) {
            $parser = $this->getParsers()[$parserId];
        } else throw new UnknownParserException();

        return $parser->parseLink($this->link)->getPreview();
    }
public function getPreview($parserId)
    {
        if (array_key_exists($parserId, $this->getParsers())) {
            $parser = $this->getParsers()[$parserId];
        } else throw new UnknownParserException();

        return $parser->parseLink($this->link)->getPreview();
    }
public function getPreview ( $ parserId ) { if ( array_key_exists ( $ parserId , $ this -> getParsers ( ) ) ) { $ parser = $ this -> getParsers ( ) [ $ parserId ] ; } else throw new UnknownParserException ( ) ; return $ parser -> parseLink ( $ this -> link ) -> getPreview ( ) ; }
Get a preview from a single parser
@param string $parserId
@throws UnknownParserException
@return PreviewInterface|boolean
Get a preview from a single parser