1 | <?php |
||
25 | class ProgressBarTwigExtension extends AbstractProgressBarTwigExtension { |
||
26 | |||
27 | /** |
||
28 | * Service name. |
||
29 | * |
||
30 | * @var string |
||
31 | */ |
||
32 | const SERVICE_NAME = "wbw.bootstrap.twig.extension.component.progress_bar"; |
||
33 | |||
34 | /** |
||
35 | * Displays a Bootstrap multiple bars. |
||
36 | * |
||
37 | * @param string[] $progressBars The progress bars. |
||
38 | * @return string Returns the Bootstrap multiple bars. |
||
39 | */ |
||
40 | public function bootstrapMultipleBars(array $progressBars): string { |
||
44 | |||
45 | /** |
||
46 | * Displays a Bootstrap progress bar "basic". |
||
47 | * |
||
48 | * @param array $args The arguments. |
||
49 | * @return string Returns the Bootstrap progress bar "basic". |
||
50 | */ |
||
51 | public function bootstrapProgressBarBasicFunction(array $args = []): string { |
||
54 | |||
55 | /** |
||
56 | * Displays a Bootstrap progress bar "danger". |
||
57 | * |
||
58 | * @param array $args The arguments. |
||
59 | * @return string Returns the Bootstrap progress bar "danger". |
||
60 | */ |
||
61 | public function bootstrapProgressBarDangerFunction(array $args = []): string { |
||
64 | |||
65 | /** |
||
66 | * Displays a Bootstrap progress bar "info". |
||
67 | * |
||
68 | * @param array $args The arguments. |
||
69 | * @return string Returns the Bootstrap progress bar "info". |
||
70 | */ |
||
71 | public function bootstrapProgressBarInfoFunction(array $args = []): string { |
||
74 | |||
75 | /** |
||
76 | * Displays a Bootstrap progress bar "success". |
||
77 | * |
||
78 | * @param array $args The arguments. |
||
79 | * @return string Returns the Bootstrap progress bar "success". |
||
80 | */ |
||
81 | public function bootstrapProgressBarSuccessFunction(array $args = []): string { |
||
84 | |||
85 | /** |
||
86 | * Displays a Bootstrap progress bar "warning". |
||
87 | * |
||
88 | * @param array $args The arguments. |
||
89 | * @return string Returns the Bootstrap progress bar "warning". |
||
90 | */ |
||
91 | public function bootstrapProgressBarWarningFunction(array $args = []): string { |
||
94 | |||
95 | /** |
||
96 | * Get the Twig filters. |
||
97 | * |
||
98 | * @return TwigFilter[] Returns the Twig filters. |
||
99 | */ |
||
100 | public function getFilters(): array { |
||
106 | |||
107 | /** |
||
108 | * Get the Twig functions. |
||
109 | * |
||
110 | * @return TwigFunction[] Returns the Twig functions. |
||
111 | */ |
||
112 | public function getFunctions(): array { |
||
133 | } |
||
134 |