Files
predis/lib/Predis/Commands/ServerSlaveOf.php
T
2011-04-25 12:39:21 +02:00

21 lines
413 B
PHP

<?php
namespace Predis\Commands;
class ServerSlaveOf extends Command {
public function getId() {
return 'SLAVEOF';
}
public function filterArguments(Array $arguments) {
if (count($arguments) === 0 || $arguments[0] === 'NO ONE') {
return array('NO', 'ONE');
}
return $arguments;
}
protected function canBeHashed() {
return false;
}
}