protected function addGroupName(XType $type, &$rule)
    {
        $groupName = $this->groupName($type);

        if (isset($this->typeToRule[$groupName])) {
            $rule[] = $this->typeToRule[$groupName];
        }
    }
protected function addGroupName(XType $type, &$rule)
    {
        $groupName = $this->groupName($type);

        if (isset($this->typeToRule[$groupName])) {
            $rule[] = $this->typeToRule[$groupName];
        }
    }
protected function addGroupName ( XType $ type , & $ rule ) { $ groupName = $ this -> groupName ( $ type ) ; if ( isset ( $ this -> typeToRule [ $ groupName ] ) ) { $ rule [ ] = $ this -> typeToRule [ $ groupName ] ; } }
Add the group name to the rule

@param XType $type
@param array $rule
Add the group name to the rule