public function setRule($rule, $replacement)
    {
        if (is_array($rule)) {
            $this->rules = $rule;
            return $this;
        }

        $this->rules[$rule] = $replacement;
        return $this;
    }