public function addAll(array $rules): self
    {
        try {
            return $this->add(...$rules);
        } catch (\TypeError $e) {
            throw new \InvalidArgumentException('Only Rule objects are allowed', 0, $e);
        }
    }
public function addAll(array $rules): self
    {
        try {
            return $this->add(...$rules);
        } catch (\TypeError $e) {
            throw new \InvalidArgumentException('Only Rule objects are allowed', 0, $e);
        }
    }
public function addAll ( array $ rules ) : self { try { return $ this -> add ( ... $ rules ) ; } catch ( \ TypeError $ e ) { throw new \ InvalidArgumentException ( 'Only Rule objects are allowed' , 0 , $ e ) ; } }
Adds several `Rule`s into this `Set`.

@param \Caridea\Validate\Rule[] $rules The rules to add
@return $this Provides a fluent interface
@throws \InvalidArgumentException if `$rules` contains invalid types
Adds several Rule s into this Set .