1 | <?php |
||
13 | class TemplateFilters |
||
14 | { |
||
15 | public static function common(string $filter): ?string |
||
16 | { |
||
17 | if (method_exists(__CLASS__, $filter)) { |
||
18 | $args = func_get_args(); |
||
19 | array_shift($args); |
||
20 | return call_user_func_array([__CLASS__, $filter], $args); |
||
21 | } |
||
22 | } |
||
23 | |||
24 | |||
25 | public static function description(string $text): string |
||
42 | } |
||
43 |