src/POData/BaseService.php
/**
     * Assert that the given condition is true.
     * 
     * @param boolean $condition         The condtion to check.
     * @param string  $conditionAsString Message to show if assertion fails.
     * 
     * @return void
     * 
     * @throws InvalidOperationException
     */
Assert that the given condition is true.

@param boolean $condition         The condtion to check.
@param string  $conditionAsString Message to show if assertion fails.

@return void


Assert that the given condition is true . @param boolean $condition The condtion to check . @param string $conditionAsString Message to show if assertion fails . @return void
protected static function assert($condition, $conditionAsString)
    {
        if (!$condition) {
            throw new InvalidOperationException(
                "Unexpected state, expecting $conditionAsString"
            );
        }
    }
protected static function assert ( $ condition , $ conditionAsString ) { if ( ! $ condition ) { throw new InvalidOperationException ( " Unexpected state, expecting  $ conditionAsString " ) ; } }
Assert that the given condition is true.
Assert that the given condition is true .