src/Agent.php
public function endTransaction(bool $ignore = false): bool
    {
        if (!$this->isLoaded()) {
            return false;
        }

        return newrelic_end_transaction($ignore);
    }
public function endTransaction(bool $ignore = false): bool
    {
        if (!$this->isLoaded()) {
            return false;
        }

        return newrelic_end_transaction($ignore);
    }
Stop instrumenting the current transaction immediately.

Agent version 3.0.5.95 or higher.

@see https://docs.newrelic.com/docs/agents/php-agent/php-agent-api/newrelic_end_transaction
@see self::endOfTransaction
@see self::startTransaction

@param bool $ignore (optional) Defaults to false

@return bool