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