Documentation

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

$endpoints

protected array<string|int, mixed> $endpoints = []
Tags
@var

array<string, class-string<\Battis\OpenAPI\Client\BaseEndpoint> $endpoints

$EXPECTED_RESPONSE_MIMETYPE

protected static string $EXPECTED_RESPONSE_MIMETYPE = 'application/json'

Methods

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


        
On this page

Search results