forked from wallabag/wallabag
Move source files directly under src/ directory
This commit is contained in:
21
src/Operator/PHP/NotMatches.php
Normal file
21
src/Operator/PHP/NotMatches.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace Wallabag\CoreBundle\Operator\PHP;
|
||||
|
||||
/**
|
||||
* Provides a "notmatches" operator used for tagging rules.
|
||||
*
|
||||
* It asserts that a given pattern is not contained in a subject, in a
|
||||
* case-insensitive way.
|
||||
*
|
||||
* This operator will be used to compile tagging rules in PHP, usable
|
||||
* directly on Entry objects for instance.
|
||||
* It's registered in RulerZ using a service;
|
||||
*/
|
||||
class NotMatches
|
||||
{
|
||||
public function __invoke($subject, $pattern)
|
||||
{
|
||||
return false === stripos($subject, $pattern);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user