getValue(); $checker = Math::getCheckerFactory() ->newLocalChecker( $tex, 'tex' ); if ( $checker->isValid() ) { return Result::newSuccess(); } // TeX string is not valid return Result::newError( [ Error::newError( '', null, 'malformed-value', [ $checker->getError() ] ) ] ); } /** * @see ValueValidator::setOptions() * * @param array $options */ public function setOptions( array $options ) { // Do nothing. This method shouldn't even be in the interface. } }