public function addValidator(ValidatorInterface $validator) { $this->validators[$validator->getName()] = $validator; return $this; }