Documentation

CallableFormatter
in package
implements PdbDataFormatterInterface uses PdbDataFormatterTrait

Wrap a callable into a formatter.

Table of Contents

Interfaces

PdbDataFormatterInterface
A formatter is much like a `PdbDataBinderInterface` instead these are registered globally rather than passed through as data objects.

Properties

$fn  : callable

Methods

__construct()  : mixed
format()  : string
Format a value before binding.
getBindingQuery()  : string

Properties

Methods

__construct()

public __construct(callable $fn) : mixed
Parameters
$fn : callable

format()

Format a value before binding.

public format(mixed $value) : string
Parameters
$value : mixed
Tags
inheritdoc
Return values
string

getBindingQuery()

public getBindingQuery(Pdb $pdb, string $column) : string
Parameters
$pdb : Pdb
$column : string
Tags
inheritdoc
Return values
string
On this page

Search results