protected function removeValidators(string $className) : Component
    {
        foreach ($this->validators as $key => $validator) {
            if ($validator instanceof $className) {
                unset($this->validators[$key]);
            }
        }

        return $this;
    }
protected function removeValidators(string $className) : Component
    {
        foreach ($this->validators as $key => $validator) {
            if ($validator instanceof $className) {
                unset($this->validators[$key]);
            }
        }

        return $this;
    }
protected function removeValidators ( string $ className ) : Component { foreach ( $ this -> validators as $ key => $ validator ) { if ( $ validator instanceof $ className ) { unset ( $ this -> validators [ $ key ] ) ; } } return $ this ; }
Removes all validators of the given class name.

@param string $className

@return static
Removes all validators of the given class name .