public function setOperations(array $operations)
    {
        $this->_operations = array();
        foreach ($operations as $operation) {
            $this->addOperation($operation);
        }
    }
public function setOperations(array $operations)
    {
        $this->_operations = array();
        foreach ($operations as $operation) {
            $this->addOperation($operation);
        }
    }
public function setOperations ( array $ operations ) { $ this -> _operations = array ( ) ; foreach ( $ operations as $ operation ) { $ this -> addOperation ( $ operation ) ; } }
Sets the batch operations.

@param array $operations The batch operations.

@return void
Sets the batch operations .