createdAt = new \DateTimeImmutable('now'); $this->account = new NullAccount(); } /** * {@inheritdoc} */ public function toArray() : array { return [ 'id' => $this->id, 'title' => $this->title, 'description' => $this->description, 'start' => $this->start, 'end' => $this->end, 'duration' => $this->duration, 'warning' => $this->warning, 'responsible' => $this->responsible, 'createdAt' => $this->createdAt, 'costs' => $this->costs, 'type' => $this->type, ]; } /** * {@inheritdoc} */ public function jsonSerialize() : mixed { return $this->toArray(); } use \Modules\Media\Models\MediaListTrait; use \Modules\Editor\Models\EditorDocListTrait; use \Modules\Attribute\Models\AttributeHolderTrait; }