Overview

Namespaces

  • None
  • Peridot
    • Leo
      • Formatter
      • Interfaces
        • Assert
      • Matcher
        • Template
      • ObjectPath
      • Responder
  • PHP

Classes

  • Formatter

Interfaces

  • FormatterInterface
  • Overview
  • Namespace
  • Class
  • Tree

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
public Peridot\Leo\Matcher\Match
# getMatch( )

Return the match being formatted.

Return the match being formatted.

Returns

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
Leo API documentation generated by ApiGen