mirror of
https://github.com/predis/predis.git
synced 2026-09-13 11:57:02 +00:00
Implemented the __isset magic method for the ConnectionParameters class (it is useful to check if a parameter has been set).
This commit is contained in:
@@ -509,6 +509,10 @@ class ConnectionParameters {
|
||||
public function __get($parameter) {
|
||||
return $this->_parameters[$parameter];
|
||||
}
|
||||
|
||||
public function __isset($parameter) {
|
||||
return isset($this->_parameters[$parameter]);
|
||||
}
|
||||
}
|
||||
|
||||
interface IConnection {
|
||||
|
||||
Reference in New Issue
Block a user