public function mutate($objects)
	{
		$objects = call_user_func_array(array($this, 'flattenArguments'), func_get_args());
		$collect = [];

		foreach ($objects as $obj) {
			if ($obj instanceof AbstractGenerator) {
				array_push($collect, $obj);
				continue;
			}

			throw new InvalidArgumentException(sprintf('Mutable objects must be instances of %s.', AbstractGenerator::class));
		}
		
		$this->mutates = array_merge(static::objectDiffInArrays($this->mutates, $collect), $collect);
		
		return $this;
	}
public function mutate($objects)
	{
		$objects = call_user_func_array(array($this, 'flattenArguments'), func_get_args());
		$collect = [];

		foreach ($objects as $obj) {
			if ($obj instanceof AbstractGenerator) {
				array_push($collect, $obj);
				continue;
			}

			throw new InvalidArgumentException(sprintf('Mutable objects must be instances of %s.', AbstractGenerator::class));
		}
		
		$this->mutates = array_merge(static::objectDiffInArrays($this->mutates, $collect), $collect);
		
		return $this;
	}
public function mutate ( $ objects ) { $ objects = call_user_func_array ( array ( $ this , 'flattenArguments' ) , func_get_args ( ) ) ; $ collect = [ ] ; foreach ( $ objects as $ obj ) { if ( $ obj instanceof AbstractGenerator ) { array_push ( $ collect , $ obj ) ; continue ; } throw new InvalidArgumentException ( sprintf ( 'Mutable objects must be instances of %s.' , AbstractGenerator :: class ) ) ; } $ this -> mutates = array_merge ( static :: objectDiffInArrays ( $ this -> mutates , $ collect ) , $ collect ) ; return $ this ; }
Add mutable generators to the mutates collection

@param mixed $objects
@return $this

@throws \InvalidArgumentException
Add mutable generators to the mutates collection