From b8f0779faee6db6d4c4fe71fc417415968966e8f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Sun, 8 Aug 2021 14:32:32 +0200 Subject: [PATCH] New tree layout Add strict types Improve documentation Cleanup --- Filter/FilterInterface.php | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/Filter/FilterInterface.php b/Filter/FilterInterface.php index 2dc2b6f..f3b2987 100644 --- a/Filter/FilterInterface.php +++ b/Filter/FilterInterface.php @@ -1,9 +1,27 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ +namespace Rapsys\PackBundle\Filter; + +/** + * Filter interface definition + * + * @todo do we need something else ? (like a constructor that read parameters or else) + */ interface FilterInterface { - //TODO: see if we need something else (like a constructor that read parameters or something else ?) - public function process($content); + /** + * Process function + * + * @param string $content The content to process + * @return string The processed content + */ + public function process(string $content): string; } -- 2.41.0