checkClass($value); } } private function checkClass($class) { $reflection = new \ReflectionClass($class); if (!$reflection->isSubclassOf(self::CLUSTER_INTERFACE)) { throw new ClientException( "The class $class is not a valid cluster connection" ); } return $class; } public function getDefault() { return self::CLUSTER_PREDIS; } }