Elastica\Node\Info::getPort PHP Метод

getPort() публичный Метод

Return port of the node.
public getPort ( ) : string
Результат string Returns Node port
    public function getPort()
    {
        // Returns string in format: inet[/192.168.1.115:9201]
        $data = $this->get('http_address');
        $data = substr($data, 6, strlen($data) - 7);
        $data = explode(':', $data);
        return $data[1];
    }