src/Container.php
public function rule($id) {
        $id = $this->normalizeID($id);

        if (!isset($this->rules[$id])) {
            $this->rules[$id] = [];
        }
        $this->currentRuleName = $id;
        $this->currentRule = &$this->rules[$id];

        return $this;
    }
public function rule($id) {
        $id = $this->normalizeID($id);

        if (!isset($this->rules[$id])) {
            $this->rules[$id] = [];
        }
        $this->currentRuleName = $id;
        $this->currentRule = &$this->rules[$id];

        return $this;
    }
public function rule ( $ id ) { $ id = $ this -> normalizeID ( $ id ) ; if ( ! isset ( $ this -> rules [ $ id ] ) ) { $ this -> rules [ $ id ] = [ ] ; } $ this -> currentRuleName = $ id ; $ this -> currentRule = & $ this -> rules [ $ id ] ; return $ this ; }
Set the current rule.

@param string $id The ID of the rule.
@return $this
Set the current rule .