Added mixin annotations for traits (#835)

Co-authored-by: Vladyslav Vildanov <vladyslavvildanov@Vladyslav-Vildanov-MacBook-Pro.local>
This commit is contained in:
Vladyslav Vildanov
2022-12-07 19:19:04 +02:00
committed by GitHub
parent e24ecbbf90
commit d2b05ff58a
8 changed files with 31 additions and 0 deletions
+4
View File
@@ -2,8 +2,12 @@
namespace Predis\Command\Traits;
use Predis\Command\Command;
use UnexpectedValueException;
/**
* @mixin Command
*/
trait ByLexByScore
{
private static $argumentsEnum = [
+4
View File
@@ -2,8 +2,12 @@
namespace Predis\Command\Traits;
use Predis\Command\Command;
use UnexpectedValueException;
/**
* @mixin Command
*/
trait Count
{
private $countModifier = 'COUNT';
+4
View File
@@ -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
+4
View File
@@ -2,8 +2,12 @@
namespace Predis\Command\Traits;
use Predis\Command\Command;
use UnexpectedValueException;
/**
* @mixin Command
*/
trait Limit
{
public function setArguments(array $arguments)
+4
View File
@@ -2,8 +2,12 @@
namespace Predis\Command\Traits;
use Predis\Command\Command;
use UnexpectedValueException;
/**
* @mixin Command
*/
trait MinMaxModifier
{
/**
+3
View File
@@ -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
{
+4
View File
@@ -2,8 +2,12 @@
namespace Predis\Command\Traits;
use Predis\Command\Command;
use UnexpectedValueException;
/**
* @mixin Command
*/
trait Rev
{
public function setArguments(array $arguments)
+4
View File
@@ -2,8 +2,12 @@
namespace Predis\Command\Traits;
use Predis\Command\Command;
/**
* Handles last argument passed into command as WITHSCORES
*
* @mixin Command
*/
trait WithScores
{