/** * Assert that the given condition is true, if false throw * ODataException for syntax error * * @param boolean $condition The condition to assert * * @return void * * @throws ODataException */ private function _assertion($condition) { if (!$condition) { ODataException::createSyntaxError(Messages::syntaxError()); } }