SetIntersectionStore.php 515 B

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