1 | <?php |
||
12 | class Formatter implements FormatterInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var Match |
||
16 | */ |
||
17 | protected $match; |
||
18 | |||
19 | public function __construct() |
||
23 | |||
24 | /** |
||
25 | * {@inheritdoc} |
||
26 | * |
||
27 | * @return Match |
||
28 | */ |
||
29 | public function getMatch() |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | * |
||
37 | * @param Match $match |
||
38 | * @return $this |
||
39 | */ |
||
40 | public function setMatch(Match $match) |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | * |
||
49 | * @param TemplateInterface $template |
||
50 | * @return mixed|string |
||
51 | */ |
||
52 | public function getMessage(TemplateInterface $template) |
||
66 | |||
67 | /** |
||
68 | * {@inheritdoc} |
||
69 | * |
||
70 | * @param mixed $obj |
||
71 | * @return string |
||
72 | */ |
||
73 | public function objectToString($obj) |
||
93 | |||
94 | /** |
||
95 | * Applies match results to other template variables. |
||
96 | * |
||
97 | * @param TemplateInterface $template |
||
98 | * @return array |
||
99 | */ |
||
100 | protected function getTemplateVars(TemplateInterface $template) |
||
113 | } |
||
114 |