BaseEndpoint
extends Mappable
in package
AbstractYes
Table of Contents
Properties
- $api : Client
- $endpoints : array<string|int, mixed>
- $EXPECTED_RESPONSE_MIMETYPE : string
- $http : Client|null
- $url : string
Methods
- __construct() : mixed
- __get() : BaseEndpoint|null
- handleRedirect() : mixed
- decodeResponse() : mixed
- send() : mixed
Properties
$api
protected
Client
$api
$endpoints
protected
array<string|int, mixed>
$endpoints
= []
Tags
$EXPECTED_RESPONSE_MIMETYPE
protected
static string
$EXPECTED_RESPONSE_MIMETYPE
= 'application/json'
$http
protected
Client|null
$http
= null
$url
protected
string
$url
= ''
Methods
__construct()
public
__construct(Client $api) : mixed
Parameters
- $api : Client
__get()
public
__get(string $name) : BaseEndpoint|null
Parameters
- $name : string
Return values
BaseEndpoint|nullhandleRedirect()
public
handleRedirect() : mixed
decodeResponse()
protected
decodeResponse(string $response) : mixed
Parameters
- $response : string
send()
protected
send(string $method[, array<string, string> $pathParameters = [] ][, array<string, string> $queryParameters = [] ][, string|JsonSerializable|null $body = null ][, array<string|int, mixed> $headers = [] ]) : mixed
Parameters
- $method : string
- $pathParameters : array<string, string> = []
- $queryParameters : array<string, string> = []
- $body : string|JsonSerializable|null = null
- $headers : array<string|int, mixed> = []
Return values
mixed —description