diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Operator/PHP/Matches.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Operator/PHP/Matches.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Operator/PHP/Matches.php b/src/Wallabag/CoreBundle/Operator/PHP/Matches.php new file mode 100644 index 00000000..4768900c --- /dev/null +++ b/src/Wallabag/CoreBundle/Operator/PHP/Matches.php | |||
@@ -0,0 +1,11 @@ | |||
1 | <?php | ||
2 | |||
3 | namespace Wallabag\CoreBundle\Operator\PHP; | ||
4 | |||
5 | class Matches | ||
6 | { | ||
7 | public function __invoke($subject, $pattern) | ||
8 | { | ||
9 | return stripos($subject, $pattern) !== false; | ||
10 | } | ||
11 | } | ||