SetIntersectionStore.php 389 B

123456789101112131415
  1. <?php
  2. namespace Predis\Commands;
  3. use Predis\Utils;
  4. class SetIntersectionStore extends Command {
  5. public function getId() { return 'SINTERSTORE'; }
  6. public function filterArguments(Array $arguments) {
  7. if (count($arguments) === 2 && is_array($arguments[1])) {
  8. return array_merge(array($arguments[0]), $arguments[1]);
  9. }
  10. return $arguments;
  11. }
  12. }