final public function isConsistent($throwException = true)
    {
        $errors = $this->getConsistencyValidationErrors();

        if (sizeof($errors) == 0) {
            return true;
        }

        if ($throwException) {
            throw new ModelConsistencyValidationException($errors);
        }

        return false;
    }
final public function isConsistent($throwException = true)
    {
        $errors = $this->getConsistencyValidationErrors();

        if (sizeof($errors) == 0) {
            return true;
        }

        if ($throwException) {
            throw new ModelConsistencyValidationException($errors);
        }

        return false;
    }
final public function isConsistent ( $ throwException = true ) { $ errors = $ this -> getConsistencyValidationErrors ( ) ; if ( sizeof ( $ errors ) == 0 ) { return true ; } if ( $ throwException ) { throw new ModelConsistencyValidationException ( $ errors ) ; } return false ; }
Returns true of the data in the model is consistent with the entity we are trying to model.

To implement your validation rules overide the getConsistencyValidationErrors()

@param bool $throwException Set to false to stop an exception being thrown if the models is inconsistent
@throws \Exception
@throws \Rhubarb\Stem\Exceptions\ModelConsistencyValidationException
@return bool
Returns true of the data in the model is consistent with the entity we are trying to model .