Add phpdoc for all Matches implementations

This commit is contained in:
Kévin Gomez 2015-11-13 20:48:51 +01:00
parent a6e27f7466
commit f27aca26f6
2 changed files with 20 additions and 0 deletions

View 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)

View 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)