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)

<p>Generate a valid e-mail address for this base URL's domain.</p>

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)

<p>Generate a valid e-mail address for this base URL's domain.</p>

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

Parameters

string $mailbox

Return Value

string