SetIntersectionStore.php 501 B

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