CALLBACK_POSITION_PREPEND
CALLBACK_POSITION_PREPEND
Class MessageFormatter
$locator : \Pvra\Result\MessageLocator
__construct(array|\Pvra\Result\MessageLocator $locator = null, boolean $addDefaultFormatter = true, boolean $addDefaultExclusiveMissingMessageLocatorHandler = false, boolean $throwOnMissingTemplate = false)
array|\Pvra\Result\MessageLocator | $locator | |
boolean | $addDefaultFormatter | |
boolean | $addDefaultExclusiveMissingMessageLocatorHandler | |
boolean | $throwOnMissingTemplate |
addMessageFormatter(callable $transformer, integer $position = self::CALLBACK_POSITION_APPEND) : $this
callable | $transformer | A callback with the following signature:
|
integer | $position |
getLocator() : \Pvra\Result\MessageLocator