protected function hasValidator(Validator $validator) : bool
    {
        $hash = spl_object_hash($validator);

        return isset($this->validators[$hash]);
    }
protected function hasValidator(Validator $validator) : bool
    {
        $hash = spl_object_hash($validator);

        return isset($this->validators[$hash]);
    }
protected function hasValidator ( Validator $ validator ) : bool { $ hash = spl_object_hash ( $ validator ) ; return isset ( $ this -> validators [ $ hash ] ) ; }
Checks whether a validator is present.

@param Validator $validator

@return bool
Checks whether a validator is present .