public function setRules( $rules )
    {
        $this->rules = array();

        foreach ( $rules as $rule )
        {
            $this->addRule( $rule );
        }

        return $this;
    }
public function setRules( $rules )
    {
        $this->rules = array();

        foreach ( $rules as $rule )
        {
            $this->addRule( $rule );
        }

        return $this;
    }
public function setRules ( $ rules ) { $ this -> rules = array ( ) ; foreach ( $ rules as $ rule ) { $ this -> addRule ( $ rule ) ; } return $ this ; }
Set all rules

@param \Customize\Model\Rule\Structure[] $rules
@return \Customize\Model\Sheet\Structure
Set all rules