]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Add phpdoc for all Matches implementations
authorKévin Gomez <contact@kevingomez.fr>
Fri, 13 Nov 2015 19:48:51 +0000 (20:48 +0100)
committerKévin Gomez <contact@kevingomez.fr>
Fri, 13 Nov 2015 19:50:09 +0000 (20:50 +0100)
src/Wallabag/CoreBundle/Operator/Doctrine/Matches.php
src/Wallabag/CoreBundle/Operator/PHP/Matches.php

index dc47c982a52a563d43bd9271bdd3e347bf87b3c1..e6bb03b12d4a5fd3b9ba2ccc114f114a71111d47 100644 (file)
@@ -2,6 +2,16 @@
 
 namespace Wallabag\CoreBundle\Operator\Doctrine;
 
+/**
+ * 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 DQL, usable
+ * by Doctrine ORM.
+ * It's registered in RulerZ using a service (wallabag.operator.doctrine.matches);
+ */
 class Matches
 {
     public function __invoke($subject, $pattern)
index 4768900ce23738bcf5436a981da5c9c736eb9863..987ed2a50b26127adf95d842d681d6a199bd9643 100644 (file)
@@ -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)