Interface FormatterInterface
FormatterInterface defines an interface for formatting match results.
Direct known implementers
Peridot\Leo\Formatter\Formatter
Namespace: Peridot\Leo\Formatter
Package: Peridot\Leo\Formatter
Located at Formatter/FormatterInterface.php
Methods summary
Package: Peridot\Leo\Formatter
Located at Formatter/FormatterInterface.php
public
Peridot\Leo\Matcher\Match
public
#
setMatch( Peridot\Leo\Matcher\Match
$match )
Set the match to format results for.
Set the match to format results for.
Parameters
- $match
public
mixed|string
#
getMessage( Peridot\Leo\Matcher\Template\TemplateInterface
$template )
Applies the match to the given TemplateInterface and return a formatted string.
Applies the match to the given TemplateInterface and return a formatted string.
Parameters
- $template
Returns
mixed|string
public
string
#
objectToString( mixed $obj )
Should return a string representation for any PHP type.
Should return a string representation for any PHP type.
Parameters
- $obj
Returns
string