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