public function register(AbstractValidator $validator) { $this->registry[$validator->getName()] = $validator; }