X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FOperator%2FPHP%2FMatches.php;fp=src%2FWallabag%2FCoreBundle%2FOperator%2FPHP%2FMatches.php;h=987ed2a50b26127adf95d842d681d6a199bd9643;hb=f27aca26f645b16eea4a33691431aeaa7d4c1ffe;hp=4768900ce23738bcf5436a981da5c9c736eb9863;hpb=a6e27f74663637ecc4a4cf84028e6b5a3556a6ff;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Operator/PHP/Matches.php b/src/Wallabag/CoreBundle/Operator/PHP/Matches.php index 4768900c..987ed2a5 100644 --- a/src/Wallabag/CoreBundle/Operator/PHP/Matches.php +++ b/src/Wallabag/CoreBundle/Operator/PHP/Matches.php @@ -2,6 +2,16 @@ namespace Wallabag\CoreBundle\Operator\PHP; +/** + * Provides a "matches" operator used for tagging rules. + * + * It asserts that a given pattern is 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 (wallabag.operator.array.matches); + */ class Matches { public function __invoke($subject, $pattern)