public function setValidator(ValidatorContract $validator) { $this->validator = $validator; return $this; }