createdAt = new \DateTimeImmutable('now'); } /** * {@inheritdoc} */ public function toArray() : array { return [ 'id' => $this->id, 'createdAt' => $this->createdAt, 'resource' => $this->resource, 'status' => $this->status, 'changemetric' => $this->changeMetric, ]; } /** * {@inheritdoc} */ public function jsonSerialize() : mixed { return $this->toArray(); } }