trait Fetcher (View source)

Simple helper for env checks which require HTTP clients.

Properties

public Client $client

Client for making requests, set vi Injector.

protected string $url

Absolute URL for requests.

Methods

public
setURL(string $url)

Set URL for requests.

public
string
getURL()

Getter for URL

Details

Fetcher setURL(string $url)

Set URL for requests.

Parameters

string $url

Relative URL

Return Value

Fetcher

string getURL()

Getter for URL

Return Value

string