class WebhookCall extends BaseResource

WebhookCall class.

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

Properties

protected SystemProperties $sys from BaseResource
protected BaseProxy $proxy from BaseResource
protected Request|null $request
protected Response|null $response
protected int $statusCode
protected string|null $error
protected string $eventType
protected string $url
protected ApiDateTime $requestAt
protected ApiDateTime $responseAt

Methods

__construct()

WebhookCallOverview constructor.

getSystemProperties()

Returns the resource's system properties, defined in the object "sys" in Contentful's responses.

string|null
getId()

Shortcut for accessing the resource ID through its system properties.

Link
asLink()

Creates a Link representation of the current resource.

setProxy(BaseProxy $proxy)

Sets the current BaseProxy object instance.

asRequestBody()

{@inheritdoc}

__call(string $name, array $arguments)

Shortcut for forwarding methods to the current proxy, using the current object as argument.

array
jsonSerialize()

Returns an array to be used by "json_encode" to serialize objects of this class.

Request|null
getRequest()

No description

Response|null
getResponse()

No description

int
getStatusCode()

No description

string|null
getError()

No description

string
getEventType()

No description

string
getUrl()

No description

getRequestAt()

No description

getResponseAt()

No description

Details

at line 68
final __construct()

WebhookCallOverview constructor.

in BaseResource at line 47
SystemProperties getSystemProperties()

Returns the resource's system properties, defined in the object "sys" in Contentful's responses.

Return Value

SystemProperties

in BaseResource at line 57
string|null getId()

Shortcut for accessing the resource ID through its system properties.

Return Value

string|null

Creates a Link representation of the current resource.

Return Value

Link

in BaseResource at line 79
BaseResource setProxy(BaseProxy $proxy)

Sets the current BaseProxy object instance.

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

Parameters

BaseProxy $proxy

Return Value

BaseResource

at line 132
asRequestBody()

{@inheritdoc}

in BaseResource at line 111
__call(string $name, array $arguments)

Shortcut for forwarding methods to the current proxy, using the current object as argument.

// Instead of
$client->asset->publish($asset);
// You can use
$asset->publish();

Parameters

string $name
array $arguments

at line 81
array jsonSerialize()

Returns an array to be used by "json_encode" to serialize objects of this class.

Return Value

array

at line 143
Request|null getRequest()

Return Value

Request|null

at line 151
Response|null getResponse()

Return Value

Response|null

at line 159
int getStatusCode()

Return Value

int

at line 167
string|null getError()

Return Value

string|null

at line 175
string getEventType()

Return Value

string

at line 183
string getUrl()

Return Value

string

at line 191
ApiDateTime getRequestAt()

Return Value

ApiDateTime

at line 199
ApiDateTime getResponseAt()

Return Value

ApiDateTime