]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/nodes/class_BaseHubNode.php
Encapsulated this code (as it is a better style)
[hub.git] / application / hub / main / nodes / class_BaseHubNode.php
index 5d9d9848c194afcbf13409a874b0c1c514938a8f..c197b489fa4f1b7e65eae1c08ef58d8b59e807a0 100644 (file)
@@ -708,6 +708,19 @@ class BaseHubNode extends BaseHubSystem implements Updateable, AddableCriteria {
                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).
         *