class BaseUrl

Methods

static BaseUrl
fromString(string $baseUrl)

No description

static BaseUrl
fromUri(UriInterface $baseUrl)

No description

string
__toString()

No description

string
toEmail(string $mailbox)

Generate a valid e-mail address for this base URL's domain.

Details

static BaseUrl fromString(string $baseUrl)

Parameters

string $baseUrl

Return Value

BaseUrl

static BaseUrl fromUri(UriInterface $baseUrl)

Parameters

UriInterface $baseUrl

Return Value

BaseUrl

string __toString()

Return Value

string

string toEmail(string $mailbox)

Generate a valid e-mail address for this base URL's domain.

This uses the given mailbox name and our already normalized host name to construct an email address.

Parameters

string $mailbox

Return Value

string