clientsCreated = $clientsCreated; $this->projectsCreated = $projectsCreated; $this->tasksCreated = $tasksCreated; $this->timeEntriesCreated = $timeEntriesCreated; $this->tagsCreated = $tagsCreated; $this->usersCreated = $usersCreated; } /** * @return array{ * clients: array{ * created: int, * }, * projects: array{ * created: int, * }, * tasks: array{ * created: int, * }, * time_entries: array{ * created: int, * }, * tags: array{ * created: int, * }, * users: array{ * created: int, * } * } */ public function toArray(): array { return [ 'clients' => [ 'created' => $this->clientsCreated, ], 'projects' => [ 'created' => $this->projectsCreated, ], 'tasks' => [ 'created' => $this->tasksCreated, ], 'time_entries' => [ 'created' => $this->timeEntriesCreated, ], 'tags' => [ 'created' => $this->tagsCreated, ], 'users' => [ 'created' => $this->usersCreated, ], ]; } }