src/LdapTools/BatchModify/BatchCollection.php
public function remove(Batch ...$batches)
    {
        foreach ($batches as $batch) {
            foreach ($this->batches as $i => $batchItem) {
                if ($batchItem === $batch) {
                    unset($this->batches[$i]);
                }
            }
        }

        return $this;
    }
public function remove(Batch ...$batches)
    {
        foreach ($batches as $batch) {
            foreach ($this->batches as $i => $batchItem) {
                if ($batchItem === $batch) {
                    unset($this->batches[$i]);
                }
            }
        }

        return $this;
    }
public function remove ( Batch ... $ batches ) { foreach ( $ batches as $ batch ) { foreach ( $ this -> batches as $ i => $ batchItem ) { if ( $ batchItem === $ batch ) { unset ( $ this -> batches [ $ i ] ) ; } } } return $ this ; }
Remove a specific batch from the collection.

@param Batch[] ...$batches
@return $this
Remove a specific batch from the collection .