aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Operator/PHP
diff options
context:
space:
mode:
authorKévin Gomez <contact@kevingomez.fr>2015-11-13 14:37:58 +0100
committerKévin Gomez <contact@kevingomez.fr>2015-11-13 14:37:58 +0100
commita6e27f74663637ecc4a4cf84028e6b5a3556a6ff (patch)
tree98e0ef2d9d2d11283a08ec0dc0af0f7c6c2e4887 /src/Wallabag/CoreBundle/Operator/PHP
parent5c514b0be320d683c22a3044d875a5e4b5fe6ce0 (diff)
downloadwallabag-a6e27f74663637ecc4a4cf84028e6b5a3556a6ff.tar.gz
wallabag-a6e27f74663637ecc4a4cf84028e6b5a3556a6ff.tar.zst
wallabag-a6e27f74663637ecc4a4cf84028e6b5a3556a6ff.zip
Add matches operator
Diffstat (limited to 'src/Wallabag/CoreBundle/Operator/PHP')
-rw-r--r--src/Wallabag/CoreBundle/Operator/PHP/Matches.php11
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
3namespace Wallabag\CoreBundle\Operator\PHP;
4
5class Matches
6{
7 public function __invoke($subject, $pattern)
8 {
9 return stripos($subject, $pattern) !== false;
10 }
11}