Casting a instance of Predis\RedisServerProfile to string returns its associated version string.

This commit is contained in:
Daniele Alessandri
2010-01-01 18:11:37 +01:00
parent d34fc18ea8
commit 9dae351819
+4
View File
@@ -807,6 +807,10 @@ abstract class RedisServerProfile {
$this->_registeredCommands[$aliases] = $command;
}
}
public function __toString() {
return $this->getVersion();
}
}
class RedisServer__V1_0 extends RedisServerProfile {