Aerys\Vhost::getBindableAddresses PHP Method

getBindableAddresses() public method

Retrieve the URIs on which this host should be bound
public getBindableAddresses ( ) : array
return array
    public function getBindableAddresses() : array
    {
        return array_map(static function ($interface) {
            list($address, $port) = $interface;
            if (strpos($address, ":") !== false) {
                $address = "[{$address}]";
            }
            return "tcp://{$address}:{$port}";
        }, $this->interfaces);
    }