protected function removeValidator(Validator $validator) : Component
    {
        $hash = spl_object_hash($validator);
        unset($this->validators[$hash]);

        return $this;
    }
protected function removeValidator(Validator $validator) : Component
    {
        $hash = spl_object_hash($validator);
        unset($this->validators[$hash]);

        return $this;
    }
protected function removeValidator ( Validator $ validator ) : Component { $ hash = spl_object_hash ( $ validator ) ; unset ( $ this -> validators [ $ hash ] ) ; return $ this ; }
Removes a validator.

Removing a non-existent validator has no effect.

@param Validator $validator

@return static
Removes a validator .