mirror of
https://github.com/wallabag/wallabag.git
synced 2025-07-27 17:28:39 +00:00
Add phpdoc for all Matches implementations
This commit is contained in:
parent
a6e27f7466
commit
f27aca26f6
2 changed files with 20 additions and 0 deletions
|
@ -2,6 +2,16 @@
|
||||||
|
|
||||||
namespace Wallabag\CoreBundle\Operator\Doctrine;
|
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
|
class Matches
|
||||||
{
|
{
|
||||||
public function __invoke($subject, $pattern)
|
public function __invoke($subject, $pattern)
|
||||||
|
|
|
@ -2,6 +2,16 @@
|
||||||
|
|
||||||
namespace Wallabag\CoreBundle\Operator\PHP;
|
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
|
class Matches
|
||||||
{
|
{
|
||||||
public function __invoke($subject, $pattern)
|
public function __invoke($subject, $pattern)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue