We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e56786 commit f930eaaCopy full SHA for f930eaa
src/Filter/Id.php
@@ -0,0 +1,19 @@
1
+<?php
2
+
3
+/**
4
+ * @see https://github.com/open-code-modeling/php-filter for the canonical source repository
5
+ * @copyright https://github.com/open-code-modeling/php-filter/blob/master/COPYRIGHT.md
6
+ * @license https://github.com/open-code-modeling/php-filter/blob/master/LICENSE.md MIT License
7
+ */
8
9
+declare(strict_types=1);
10
11
+namespace OpenCodeModeling\Filter\Filter;
12
13
+final class Id extends AbstractFilter
14
+{
15
+ public function __invoke(string $value): string
16
+ {
17
+ return ($this->filter)($value) . 'Id';
18
+ }
19
+}
0 commit comments