| Total Complexity | 6 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class HeaderTabellaExtension extends AbstractExtension |
||
| 9 | { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * {@inheritdoc} |
||
| 13 | */ |
||
| 14 | 1 | public function getFunctions(): array |
|
| 15 | { |
||
| 16 | 1 | return array( |
|
| 17 | 1 | new TwigFunction('sort_class', [$this, 'sortClass']), |
|
| 18 | 1 | ); |
|
| 19 | } |
||
| 20 | /** |
||
| 21 | * |
||
| 22 | * @param string $colonneordinamento |
||
| 23 | * @param array<mixed> $modellocampo |
||
| 24 | * @return string |
||
| 25 | */ |
||
| 26 | 7 | public function sortClass(string $colonneordinamento, array $modellocampo): string |
|
| 44 | } |
||
| 45 | } |
||
| 46 |