Overview

Namespaces

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

Classes

  • ExceptionResponder

Interfaces

  • ResponderInterface
  • Overview
  • Namespace
  • Class
  • Tree

Class ExceptionResponder

The ExceptionResponder responds to a match by throwing an exception on a failed match.

Peridot\Leo\Responder\ExceptionResponder implements Peridot\Leo\Responder\ResponderInterface
Namespace: Peridot\Leo\Responder
Package: Peridot\Leo\Responder
Located at Responder/ExceptionResponder.php
Methods summary
public
# __construct( Peridot\Leo\Formatter\FormatterInterface $formatter )

Parameters

$formatter
public
# respond( Peridot\Leo\Matcher\Match $match, Peridot\Leo\Matcher\Template\TemplateInterface $template, string $message = "" )

Respond to a Match given a TemplateInterface to format the message.

Respond to a Match given a TemplateInterface to format the message.

Throws an exception containing the formatted message.

Parameters

$match
$template
$message

Throws

Exception

Implementation of

Peridot\Leo\Responder\ResponderInterface::respond()
Properties summary
protected Peridot\Leo\Formatter\FormatterInterface $formatter
#
Leo API documentation generated by ApiGen