mirror of
https://github.com/predis/predis.git
synced 2026-08-30 20:21:31 +00:00
Added mixin annotations for traits (#835)
Co-authored-by: Vladyslav Vildanov <vladyslavvildanov@Vladyslav-Vildanov-MacBook-Pro.local>
This commit is contained in:
committed by
GitHub
parent
e24ecbbf90
commit
d2b05ff58a
@@ -2,8 +2,12 @@
|
||||
|
||||
namespace Predis\Command\Traits;
|
||||
|
||||
use Predis\Command\Command;
|
||||
use UnexpectedValueException;
|
||||
|
||||
/**
|
||||
* @mixin Command
|
||||
*/
|
||||
trait ByLexByScore
|
||||
{
|
||||
private static $argumentsEnum = [
|
||||
|
||||
@@ -2,8 +2,12 @@
|
||||
|
||||
namespace Predis\Command\Traits;
|
||||
|
||||
use Predis\Command\Command;
|
||||
use UnexpectedValueException;
|
||||
|
||||
/**
|
||||
* @mixin Command
|
||||
*/
|
||||
trait Count
|
||||
{
|
||||
private $countModifier = 'COUNT';
|
||||
|
||||
@@ -2,8 +2,12 @@
|
||||
|
||||
namespace Predis\Command\Traits;
|
||||
|
||||
use Predis\Command\Command;
|
||||
use UnexpectedValueException;
|
||||
|
||||
/**
|
||||
* @mixin Command
|
||||
*/
|
||||
trait Keys
|
||||
{
|
||||
public function unpackKeysArray(int $keysArgumentOffset, array &$arguments): void
|
||||
|
||||
@@ -2,8 +2,12 @@
|
||||
|
||||
namespace Predis\Command\Traits;
|
||||
|
||||
use Predis\Command\Command;
|
||||
use UnexpectedValueException;
|
||||
|
||||
/**
|
||||
* @mixin Command
|
||||
*/
|
||||
trait Limit
|
||||
{
|
||||
public function setArguments(array $arguments)
|
||||
|
||||
@@ -2,8 +2,12 @@
|
||||
|
||||
namespace Predis\Command\Traits;
|
||||
|
||||
use Predis\Command\Command;
|
||||
use UnexpectedValueException;
|
||||
|
||||
/**
|
||||
* @mixin Command
|
||||
*/
|
||||
trait MinMaxModifier
|
||||
{
|
||||
/**
|
||||
|
||||
@@ -2,10 +2,13 @@
|
||||
|
||||
namespace Predis\Command\Traits;
|
||||
|
||||
use Predis\Command\Command;
|
||||
use UnexpectedValueException;
|
||||
|
||||
/**
|
||||
* Resolves numkeys argument from keys and attach it to arguments
|
||||
*
|
||||
* @mixin Command
|
||||
*/
|
||||
trait Numkeys
|
||||
{
|
||||
|
||||
@@ -2,8 +2,12 @@
|
||||
|
||||
namespace Predis\Command\Traits;
|
||||
|
||||
use Predis\Command\Command;
|
||||
use UnexpectedValueException;
|
||||
|
||||
/**
|
||||
* @mixin Command
|
||||
*/
|
||||
trait Rev
|
||||
{
|
||||
public function setArguments(array $arguments)
|
||||
|
||||
@@ -2,8 +2,12 @@
|
||||
|
||||
namespace Predis\Command\Traits;
|
||||
|
||||
use Predis\Command\Command;
|
||||
|
||||
/**
|
||||
* Handles last argument passed into command as WITHSCORES
|
||||
*
|
||||
* @mixin Command
|
||||
*/
|
||||
trait WithScores
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user