]> git.immae.eu Git - github/wallabag/wallabag.git/blob - src/Wallabag/CoreBundle/Operator/PHP/Matches.php
Add matches operator
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Operator / PHP / Matches.php
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 }