Svea/AdminService/AdminServiceRequest.php
/**
     * Validates the orderBuilder object to make sure that all required settings
     * are present. If not, throws an exception. Actual validation is delegated
     * to subclass validate() implementations.
     *
     * @throws ValidationException
     */
Validates the orderBuilder object to make sure that all required settings
are present. If not, throws an exception. Actual validation is delegated
to subclass validate() implementations.


Validates the orderBuilder object to make sure that all required settings are present . If not throws an exception . Actual validation is delegated to subclass validate () implementations .
public function validateRequest() {
        $errors = $this->validate();
        if (count($errors) > 0) {
            $exceptionString = "";
            foreach ($errors as $error) {
                foreach( $error as $key => $value) {
                    $exceptionString .="-". $key. " : ".$value."\n";
                }
            }
            throw new \Svea\ValidationException($exceptionString);
        }
    }
public function validateRequest ( ) { $ errors = $ this -> validate ( ) ; if ( count ( $ errors ) > 0 ) { $ exceptionString = " " ; foreach ( $ errors as $ error ) { foreach ( $ error as $ key => $ value ) { $ exceptionString .= " - " . $ key . "  :  " . $ value . " \n " ; } } throw new \ Svea \ ValidationException ( $ exceptionString ) ; } }
Validates the orderBuilder object to make sure that all required settings
 are present.
Validates the orderBuilder object to make sure that all required settings are present .
// validate sub-class requirements by calling sub-class validate() method