src/Form/RuleCollection.php
public function addCollection(RuleCollection $collection)
    {
        foreach ($collection as $name => $rule) {
            $this->set($name, $rule);
        }
    }
public function addCollection(RuleCollection $collection)
    {
        foreach ($collection as $name => $rule) {
            $this->set($name, $rule);
        }
    }
public function addCollection ( RuleCollection $ collection ) { foreach ( $ collection as $ name => $ rule ) { $ this -> set ( $ name , $ rule ) ; } }
Adds a rule collection at the end of the current set by appending all
rule of the added collection.

@param RuleCollection $collection A RuleCollection instance
Adds a rule collection at the end of the current set by appending all rule of the added collection .