| 1 | <?php |
||
| 12 | class Event implements CreatableFromArray |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var \DateTime |
||
| 16 | */ |
||
| 17 | private $createdAt; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | private $type; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var EventData |
||
| 26 | */ |
||
| 27 | private $data; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return \DateTime |
||
| 31 | */ |
||
| 32 | public function getCreatedAt(): \DateTime |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param \DateTime $createdAt |
||
| 39 | * |
||
| 40 | * @return Event |
||
| 41 | */ |
||
| 42 | public function setCreatedAt(\DateTime $createdAt) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | public function getType(): string |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @param string $type |
||
| 60 | * |
||
| 61 | * @return Event |
||
| 62 | */ |
||
| 63 | public function setType(string $type) |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @return EventData |
||
| 73 | */ |
||
| 74 | public function getDate() |
||
| 78 | |||
| 79 | /** |
||
| 80 | * @param EventData $data |
||
| 81 | * |
||
| 82 | * @return Event |
||
| 83 | */ |
||
| 84 | public function setDate(EventData $data) |
||
| 91 | |||
| 92 | public function toArray() |
||
| 107 | |||
| 108 | /** |
||
| 109 | * Create an API response object from the HTTP response from the API server. |
||
| 110 | * |
||
| 111 | * @param array $data |
||
| 112 | * |
||
| 113 | * @return self |
||
| 114 | */ |
||
| 115 | 3 | public static function createFromArray(array $data) |
|
| 124 | } |
||
| 125 |