public function addRules(array $rules)
    {
        foreach ($rules as $character => $replacement) {
            $this->addRule($character, $replacement);
        }

        return $this;
    }
public function addRules(array $rules)
    {
        foreach ($rules as $character => $replacement) {
            $this->addRule($character, $replacement);
        }

        return $this;
    }
public function addRules ( array $ rules ) { foreach ( $ rules as $ character => $ replacement ) { $ this -> addRule ( $ character , $ replacement ) ; } return $ this ; }
Adds multiple rules to Slugify.

@param array <string,string> $rules

@return Slugify
Adds multiple rules to Slugify .