commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
BaseEvent.php
1<?php
2
3declare(strict_types=1);
10
13use DateTimeImmutable;
14
15interface BaseEvent extends JsonObject
16{
17 public const FIELD_ID = 'id';
18 public const FIELD_NOTIFICATION_TYPE = 'notificationType';
19 public const FIELD_RESOURCE_TYPE = 'resourceType';
20 public const FIELD_TYPE = 'type';
21 public const FIELD_DATA = 'data';
22 public const FIELD_CREATED_AT = 'createdAt';
23
30 public function getId();
31
36 public function getNotificationType();
37
44 public function getResourceType();
45
52 public function getType();
53
60 public function getData();
61
68 public function getCreatedAt();
69
73 public function setId(?string $id): void;
74
78 public function setNotificationType(?string $notificationType): void;
79
83 public function setResourceType(?string $resourceType): void;
84
88 public function setType(?string $type): void;
89
93 public function setData(?JsonObject $data): void;
94
98 public function setCreatedAt(?DateTimeImmutable $createdAt): void;
99}
setCreatedAt(?DateTimeImmutable $createdAt)
setNotificationType(?string $notificationType)
setResourceType(?string $resourceType)