MatthiasMullie\Scrapbook\Buffered\TransactionalStore::commit PHP Method

commit() public method

If the any write fails, all subsequent writes will be aborted & all keys that had already been written to will be deleted.
public commit ( ) : boolean
return boolean
    public function commit()
    {
        if (count($this->transactions) <= 1) {
            throw new UnbegunTransaction('Attempted to commit without having begun a transaction.');
        }
        /** @var Transaction $transaction */
        $transaction = array_pop($this->transactions);
        return $transaction->commit();
    }