public function addRule( $rule )
    {
        if ( ! ( $rule instanceof RuleStructure ) )
        {
            $rule = new RuleStructure( $rule );
        }

        $this->rules[] = $rule;
        return $this;
    }
public function addRule( $rule )
    {
        if ( ! ( $rule instanceof RuleStructure ) )
        {
            $rule = new RuleStructure( $rule );
        }

        $this->rules[] = $rule;
        return $this;
    }
public function addRule ( $ rule ) { if ( ! ( $ rule instanceof RuleStructure ) ) { $ rule = new RuleStructure ( $ rule ) ; } $ this -> rules [ ] = $ rule ; return $ this ; }
Add a rule

@param array|\Customize\Model\Rule\Structure $rule
@return \Customize\Model\Sheet\Structure
Add a rule