template = new NullWorkflowTemplate(); $this->createdBy = new NullAccount(); $this->createdAt = new \DateTimeImmutable('now'); } /** * {@inheritdoc} */ public function toArray() : array { return [ 'id' => $this->id, 'title' => $this->title, 'createdAt' => $this->createdAt, 'data' => $this->data, 'data_int' => $this->data_int, 'ref' => $this->ref, ]; } /** * {@inheritdoc} */ public function jsonSerialize() : mixed { return $this->toArray(); } }