protected function getTransactionIsolationSQLDeclaration($isolation)
    {
        if (!$this->supportTransactionIsolations()) {
            throw PlatformException::methodNotSupported(__METHOD__);
        }

        $availableIsolations = array(
            Connection::TRANSACTION_READ_COMMITTED,
            Connection::TRANSACTION_READ_UNCOMMITTED,
            Connection::TRANSACTION_REPEATABLE_READ,
            Connection::TRANSACTION_SERIALIZABLE,
        );

        if (!in_array($isolation, $availableIsolations)) {
            throw PlatformException::transactionIsolationDoesNotExist($isolation);
        }

        return $isolation;
    }
protected function getTransactionIsolationSQLDeclaration($isolation)
    {
        if (!$this->supportTransactionIsolations()) {
            throw PlatformException::methodNotSupported(__METHOD__);
        }

        $availableIsolations = array(
            Connection::TRANSACTION_READ_COMMITTED,
            Connection::TRANSACTION_READ_UNCOMMITTED,
            Connection::TRANSACTION_REPEATABLE_READ,
            Connection::TRANSACTION_SERIALIZABLE,
        );

        if (!in_array($isolation, $availableIsolations)) {
            throw PlatformException::transactionIsolationDoesNotExist($isolation);
        }

        return $isolation;
    }
protected function getTransactionIsolationSQLDeclaration ( $ isolation ) { if ( ! $ this -> supportTransactionIsolations ( ) ) { throw PlatformException :: methodNotSupported ( __METHOD__ ) ; } $ availableIsolations = array ( Connection :: TRANSACTION_READ_COMMITTED , Connection :: TRANSACTION_READ_UNCOMMITTED , Connection :: TRANSACTION_REPEATABLE_READ , Connection :: TRANSACTION_SERIALIZABLE , ) ; if ( ! in_array ( $ isolation , $ availableIsolations ) ) { throw PlatformException :: transactionIsolationDoesNotExist ( $ isolation ) ; } return $ isolation ; }
Gets the transaction isolation SQL declaration.

@param string $isolation The transaction isolation.

@throws \Fridge\DBAL\Exception\PlatformException If the transactions isolcation is not supported.
@throws \Fridge\DBAL\Exception\PlatformException If the isolation does not exist.

@return string The transaction isolation SQL declaration.
Gets the transaction isolation SQL declaration .