Skip to content

Commit f930eaa

Browse files
committed
Add filter for Id suffix - Close #8
1 parent 1e56786 commit f930eaa

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/Filter/Id.php

+19
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)