class WebhookCall extends BaseResource

WebhookCall class.

This class represents a resource with type "WebhookCallOverview" in Contentful.

Properties

protected WebhookCall $sys
protected Client|null $client from BaseResource
protected RequestInterface|null $request
protected ResponseInterface|null $response
protected int $statusCode
protected string|null $error
protected string $eventType
protected string $url
protected DateTimeImmutable $requestAt
protected DateTimeImmutable $responseAt

Methods

string
getId()

{@inheritdoc}

string
getType()

{@inheritdoc}

Link
asLink()

{@inheritdoc}

mixed
asRequestBody()

Returns the resource in the form of request body.

setClient(Client $client)

Sets the current Client object instance.

array
jsonSerialize()

{@inheritdoc}

array
asUriParameters()

Returns an associative array where keys are the name of the fragments in a URI, and the values are the corresponding IDs.

RequestInterface|null
getRequest()

No description

ResponseInterface|null
getResponse()

No description

int
getStatusCode()

No description

string|null
getError()

No description

string
getEventType()

No description

string
getUrl()

No description

DateTimeImmutable
getRequestAt()

No description

DateTimeImmutable
getResponseAt()

No description

Details

in BaseResource at line 37
string getId()

{@inheritdoc}

Return Value

string

in BaseResource at line 45
string getType()

{@inheritdoc}

Return Value

string

{@inheritdoc}

Return Value

Link

at line 162
mixed asRequestBody()

Returns the resource in the form of request body.

This can differ from regular serialization, as some fields may not be present in the request payload.

Return Value

mixed

in BaseResource at line 79
BaseResource setClient(Client $client)

Sets the current Client object instance.

This is done automatically when performing API calls, so it shouldn't be used manually.

Parameters

Client $client

Return Value

BaseResource

at line 83
WebhookCall getSystemProperties()

{@inheritdoc}

Return Value

WebhookCall

at line 91
array jsonSerialize()

{@inheritdoc}

Return Value

array

at line 127
array asUriParameters()

Returns an associative array where keys are the name of the fragments in a URI, and the values are the corresponding IDs.

Return Value

array

at line 173
RequestInterface|null getRequest()

Return Value

RequestInterface|null

at line 181
ResponseInterface|null getResponse()

Return Value

ResponseInterface|null

at line 189
int getStatusCode()

Return Value

int

at line 197
string|null getError()

Return Value

string|null

at line 205
string getEventType()

Return Value

string

at line 213
string getUrl()

Return Value

string

at line 221
DateTimeImmutable getRequestAt()

Return Value

DateTimeImmutable

at line 229
DateTimeImmutable getResponseAt()

Return Value

DateTimeImmutable