rechtstext_text === null) { throw new TextException( "No text provided" ); } if (mb_strlen((string)$xml->rechtstext_text) < 50) { throw new TextException( "The text size must be greater than 50" ); } return parent::process($xml); } }