*/
function getAddressPort ();
+ /**
+ * "Getter for address:port array
+ *
+ * @return $addressPortArray An array address:port combination for this node
+ */
+ function getAddressPortArray ();
+
/**
* Updates/refreshes node data (e.g. state).
*
$dataSetInstance->setUniqueKey(self::DB_COLUMN_NODE_ID);
// Get ip:port combination and "explode" it
- $ipPort = explode(':' . $nodeInstance->getAddressPort());
+ $ipPort = $nodeInstance->getAddressPortArray();
// Make sure both is valid
assert(($ipPort[0] !== 'invalid') && ($ipPort[1] !== 'invalid'));
$nodeInstance = Registry::getRegistry()->getInstance('node');
// Get ip:port combination and "explode" it
- $ipPort = explode(':' . $nodeInstance->getAddressPort());
+ $ipPort = $nodeInstance->getAddressPortArray());
// Make sure both is valid
assert(($ipPort[0] !== 'invalid') && ($ipPort[1] !== 'invalid'));
return $addressPort;
}
+ /**
+ * "Getter" for address:port array
+ *
+ * @return $addressPortArray An array of a address:port combination for this node
+ */
+ public final function getAddressPort () {
+ // Get IP and port
+ $addressPortArray = explode(':', $this->getAddressPort();
+
+ // Return it
+ return $addressPortArray;
+ }
+
/**
* Updates/refreshes node data (e.g. status).
*