src/Object/Signup/Account.php
protected function validate()
    {
        $validator = new ValidationHelper($this);
        if (!$validator->validate()) {
            foreach ($validator->getErrors() as $errors) {
                throw new NostoException(sprintf('Invalid Nosto account. %s', $errors[0]));
            }
        }
    }
protected function validate()
    {
        $validator = new ValidationHelper($this);
        if (!$validator->validate()) {
            foreach ($validator->getErrors() as $errors) {
                throw new NostoException(sprintf('Invalid Nosto account. %s', $errors[0]));
            }
        }
    }
protected function validate ( ) { $ validator = new ValidationHelper ( $ this ) ; if ( ! $ validator -> validate ( ) ) { foreach ( $ validator -> getErrors ( ) as $ errors ) { throw new NostoException ( sprintf ( 'Invalid Nosto account. %s' , $ errors [ 0 ] ) ) ; } } }
Validates the account attributes.

@throws NostoException if any attribute is invalid.
Validates the account attributes .