12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- namespace Predis\Command;
- class StringBitOp extends AbstractCommand implements PrefixableCommandInterface
- {
-
- public function getId()
- {
- return 'BITOP';
- }
-
- protected function filterArguments(Array $arguments)
- {
- if (count($arguments) === 3 && is_array($arguments[2])) {
- list($operation, $destination, ) = $arguments;
- $arguments = $arguments[2];
- array_unshift($arguments, $operation, $destination);
- }
- return $arguments;
- }
-
- public function prefixKeys($prefix)
- {
- PrefixHelpers::skipFirst($this, $prefix);
- }
- }
|