]> Raphaël G. Git Repositories - packbundle/commitdiff
New tree layout
authorRaphaël Gertz <git@rapsys.eu>
Sun, 8 Aug 2021 12:32:32 +0000 (14:32 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Sun, 8 Aug 2021 12:32:32 +0000 (14:32 +0200)
Add strict types
Improve documentation
Cleanup

Filter/FilterInterface.php

index 2dc2b6fd2cb6929f6e0f2464c1cb96661bc046ad..f3b2987f2882d500ec72ee6807bff1b81cba43fc 100644 (file)
@@ -1,9 +1,27 @@
-<?php
+<?php declare(strict_types=1);
 
 
-// src/Rapsys/PackBundle/Twig/Filter/FilterInterface.php
-namespace Rapsys\PackBundle\Twig\Filter;
+/*
+ * This file is part of the Rapsys PackBundle package.
+ *
+ * (c) Raphaël Gertz <symfony@rapsys.eu>
+ *
+ * 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 {
 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;
 }
 }