class LabelFormatter implements FormatterInterface (View source)

Properties

protected LoggerInterface $logger

Methods

__construct(LoggerInterface $logger)

No description

mixed
format($mask, callable $matchHandler)

Format a mask using the standard format given a callable

string
getResult($key, callable $matchHandler)

Get a result given a key

Details

__construct(LoggerInterface $logger)

Parameters

LoggerInterface $logger

mixed format($mask, callable $matchHandler)

Format a mask using the standard format given a callable

Ex: if you have attributes with handles student_first_name and student_last_name %student_last_name%, %student_first_name%

Parameters

$mask
callable $matchHandler

Return Value

mixed

private string getResult($key, callable $matchHandler)

Get a result given a key

Parameters

$key
callable $matchHandler

Return Value

string