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
$fn
public
callable
$fn
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
Return values
stringgetBindingQuery()
public
getBindingQuery(Pdb $pdb, string $column) : string
Parameters
- $pdb : Pdb
- $column : string