protected function validateRecord(array $record)
    {
        foreach ($this->validators as $name => $validator) {
            if (true !== $validator($record)) {
                throw CannotInsertRecord::triggerOnValidation($name, $record);
            }
        }
    }
protected function validateRecord(array $record)
    {
        foreach ($this->validators as $name => $validator) {
            if (true !== $validator($record)) {
                throw CannotInsertRecord::triggerOnValidation($name, $record);
            }
        }
    }
protected function validateRecord ( array $ record ) { foreach ( $ this -> validators as $ name => $ validator ) { if ( true !== $ validator ( $ record ) ) { throw CannotInsertRecord :: triggerOnValidation ( $ name , $ record ) ; } } }
Validate a record.

@throws CannotInsertRecord If the validation failed
Validate a record .