Platformsh\Cli\Command\Tunnel\TunnelCommandBase::formatTunnelRelationship PHP Method

formatTunnelRelationship() protected method

Format a tunnel's relationship as a string.
protected formatTunnelRelationship ( array $tunnel ) : string
$tunnel array
return string
    protected function formatTunnelRelationship(array $tunnel)
    {
        return $tunnel['serviceKey'] > 0 ? sprintf('%s.%d', $tunnel['relationship'], $tunnel['serviceKey']) : $tunnel['relationship'];
    }