1 | <?php |
||
13 | class Formatter implements FormatterInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var Match |
||
17 | */ |
||
18 | protected $match; |
||
19 | |||
20 | public function __construct() |
||
21 | { |
||
22 | } |
||
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) |
||
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | * |
||
50 | * @param TemplateInterface $template |
||
51 | * @return mixed|string |
||
52 | */ |
||
53 | public function getMessage(TemplateInterface $template) |
||
67 | |||
68 | /** |
||
69 | * {@inheritdoc} |
||
70 | * |
||
71 | * @param mixed $obj |
||
72 | * @return string |
||
73 | */ |
||
74 | public function objectToString($obj) |
||
84 | |||
85 | /** |
||
86 | * Applies match results to other template variables. |
||
87 | * |
||
88 | * @param TemplateInterface $template |
||
89 | * @return array |
||
90 | */ |
||
91 | protected function getTemplateVars(TemplateInterface $template) |
||
104 | } |
||
105 |
According to the PSR-2, the body of a case statement must start on the line immediately following the case statement.
}
To learn more about the PSR-2 coding standard, please refer to the PHP-Fig.