com\setasign\SetaFramework\Database

QuoteLaterExpression Class QuoteLaterExpression

File: /SetaFramework/src/Database/QuoteLaterExpression.php

A quoteLaterExpression is a bit like an expression but instead of completly ignoring the quoting process the defined callback can decide by its own how it wants to quote the content.

Class hierarchy

Implements

Summary

Properties

$callback

protected callable QuoteLaterExpression::$callback

Methods

__construct()

public QuoteLaterExpression::__construct (
callable $callback
)

QuoteLaterExpression constructor.

Parameters
$callback : callable

Should expect the Database as param and must return a quoted string

quote()

public QuoteLaterExpression::quote (
QuoteInterface $quoteInterface
): string
Parameters
$quoteInterface : QuoteInterface