martin-helmich/typo3-typoscript-parser

View on GitHub
src/Tokenizer/Preprocessing/Preprocessor.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php declare(strict_types=1);

namespace Helmich\TypoScriptParser\Tokenizer\Preprocessing;

/**
 * Interface definitions for tokenizer preprocessors.
 *
 * Preprocessors can change the TypoScript input source code before it
 * is passed to the actual tokenizer.
 *
 * @package Helmich\TypoScriptParser\Tokenizer\Preprocessing
 */
interface Preprocessor
{

    /**
     * @param string $contents Un-processed Typoscript contents
     * @return string Processed TypoScript contents
     */
    public function preprocess(string $contents): string;
}