src/fieldwork/Form.php
public function addValidator (FormValidator $validator, $unshift = false)
    {
        if ($unshift)
            array_unshift($this->validators, $validator);
        else
            $this->validators[] = $validator;
        return $this;
    }
public function addValidator (FormValidator $validator, $unshift = false)
    {
        if ($unshift)
            array_unshift($this->validators, $validator);
        else
            $this->validators[] = $validator;
        return $this;
    }
public function addValidator ( FormValidator $ validator , $ unshift = false ) { if ( $ unshift ) array_unshift ( $ this -> validators , $ validator ) ; else $ this -> validators [ ] = $ validator ; return $ this ; }
Adds a new form-level validator

@param FormValidator $validator validator
@param boolean       $unshift   Whether to add the validator to the front of the array

@return static
Adds a new form - level validator