| Total Complexity | 6 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | trait ModuleTrait |
||
| 15 | { |
||
| 16 | protected $redisClient; |
||
| 17 | |||
| 18 | public function __construct(RedisClientInterface $redisClient) |
||
| 21 | } |
||
| 22 | |||
| 23 | final public static function createWithPredis(PredisClient $predisClient) : self |
||
| 24 | { |
||
| 25 | return new static( |
||
| 26 | new RedislabsPredisClient($predisClient) |
||
| 27 | ); |
||
| 28 | } |
||
| 29 | |||
| 30 | final public static function createWithPhpRedis(PhpRedisClient $predisClient) : self |
||
| 34 | ); |
||
| 35 | } |
||
| 36 | |||
| 37 | final public function runCommand(CommandInterface $command) |
||
| 45 | } |
||
| 46 | |||
| 47 | final public function __call($name, $arguments) |
||
| 54 |