public function __construct(AbstractValidator $type, Validator $validator) { $this->type = $type; $this->validator = $validator; }