12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- namespace Predis\Command;
- class TransactionWatch extends AbstractCommand implements PrefixableCommandInterface
- {
-
- public function getId()
- {
- return 'WATCH';
- }
-
- protected function filterArguments(Array $arguments)
- {
- if (isset($arguments[0]) && is_array($arguments[0])) {
- return $arguments[0];
- }
- return $arguments;
- }
-
- public function prefixKeys($prefix)
- {
- PrefixHelpers::all($this, $prefix);
- }
-
- public function parseResponse($data)
- {
- return (bool) $data;
- }
- }
|