rechtstext_type) { return parent::process($xml); } if ($xml->rechtstext_pdf_url === null) { throw new PdfUrlException( "No url for the pdf provided" ); } if ((string)$xml->rechtstext_pdf_url === '') { throw new PdfUrlException( "Pdf url is empty" ); } return parent::process($xml); } }