| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | 1 | final class SerializerRuntimeExtension extends SerializerBaseExtension |
|
| 14 | { |
||
| 15 | 1 | /** |
|
| 16 | * @return TwigFilter[] |
||
| 17 | * |
||
| 18 | 1 | * @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingReturnTypeHint |
|
| 19 | */ |
||
| 20 | public function getFilters() |
||
| 21 | 1 | { |
|
| 22 | return [ |
||
| 23 | new TwigFilter($this->serializationFunctionsPrefix . 'serialize', [SerializerRuntimeHelper::class, 'serialize']), |
||
| 24 | ]; |
||
| 25 | 1 | } |
|
| 26 | |||
| 27 | /** |
||
| 28 | 1 | * @return TwigFunction[] |
|
| 29 | * |
||
| 30 | * @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingReturnTypeHint |
||
| 31 | */ |
||
| 32 | public function getFunctions() |
||
| 36 | ]; |
||
| 37 | } |
||
| 39 |