src/ValidatorHolderTrait.php
public function addValidator(Validator\ValidatorInterface $validator) {
        $this->validators[get_class($validator)] = $validator;
        
        return $this;
    }
public function addValidator(Validator\ValidatorInterface $validator) {
        $this->validators[get_class($validator)] = $validator;
        
        return $this;
    }
public function addValidator ( Validator \ ValidatorInterface $ validator ) { $ this -> validators [ get_class ( $ validator ) ] = $ validator ; return $ this ; }
Adds a Validator to this

@param ValidatorInterface $validator
@return ValidatorHolderInterface Returns itself for daisy-chaining
Adds a Validator to this