Class EndpointList
Methods Summary
- __construct ( array $endpoints )
-
getActive ( )
Gets an active (unexpired) endpoint. Returns null if none found.
-
getEndpoint ( )
Gets an active endpoint if possible, then an expired endpoint if possible. Returns null if no endpoints found.
-
remove ( string $key )
Removes an endpoint from both lists.
Methods Details
__construct ( array $endpoints )
null|string getActive ( )
Gets an active (unexpired) endpoint. Returns null if none found.
Returns
null|string |
null|string getEndpoint ( )
Gets an active endpoint if possible, then an expired endpoint if possible. Returns null if no endpoints found.
Returns
null|string |
remove ( string $key )
Removes an endpoint from both lists.
Parameters
string | $key |