SetIntersectionStore.php 496 B

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