src/Shop/AcumulusEntryManager.php
public function save(Source $invoiceSource, $entryId, $token)
    {
        $now = $this->sqlNow();
        $record = $this->getByInvoiceSource($invoiceSource, false);
        if ($record === null) {
            $result = $this->insert($invoiceSource, $entryId, $token, $now);
        } else {
            $result = $this->update($record, $entryId, $token, $now);
        }
        return $result;
    }
public function save(Source $invoiceSource, $entryId, $token)
    {
        $now = $this->sqlNow();
        $record = $this->getByInvoiceSource($invoiceSource, false);
        if ($record === null) {
            $result = $this->insert($invoiceSource, $entryId, $token, $now);
        } else {
            $result = $this->update($record, $entryId, $token, $now);
        }
        return $result;
    }
public function save ( Source $ invoiceSource , $ entryId , $ token ) { $ now = $ this -> sqlNow ( ) ; $ record = $ this -> getByInvoiceSource ( $ invoiceSource , false ) ; if ( $ record === null ) { $ result = $ this -> insert ( $ invoiceSource , $ entryId , $ token , $ now ) ; } else { $ result = $ this -> update ( $ record , $ entryId , $ token , $ now ) ; } return $ result ; }
Saves the Acumulus entry for the given order in the web shop's database.

This default implementation calls getByInvoiceSource() to determine
whether to subsequently call insert() or update().

So normally, a child class should implement insert() and update() and not
override this method.

@param \Siel\Acumulus\Invoice\Source $invoiceSource
The source object for which the invoice was created.
@param int|null $entryId
The Acumulus entry Id assigned to the invoice for this order.
@param string|null $token
The Acumulus token to be used to access the invoice for this order via
the Acumulus API.

@return bool
Success.
Saves the Acumulus entry for the given order in the web shop s database .