1: <?php
2: namespace Peridot\Leo\Responder;
3:
4: use Peridot\Leo\Matcher\Match;
5: use Peridot\Leo\Matcher\Template\TemplateInterface;
6:
7: /**
8: * The ResponderInterface is responsible for responding
9: * to match results.
10: *
11: * @package Peridot\Leo\Responder
12: */
13: interface ResponderInterface
14: {
15: /**
16: * Respond to a Match given a TemplateInterface to format the message.
17: *
18: * @param Match $match
19: * @param TemplateInterface $template
20: * @param string $message a user provided messaged
21: * @return mixed
22: */
23: public function respond(Match $match, TemplateInterface $template, $message);
24: }
25: