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