forked from wallabag/wallabag
Add phpdoc for all Matches implementations
This commit is contained in:
@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user