*/ public function to_array(): array { return array( 'run_state' => $this->run_state->value, 'phase' => $this->phase?->value, 'started_at' => $this->started_at, 'last_read_post_id' => $this->last_read_post_id, 'posts_read' => $this->posts_read, 'finished_at' => $this->finished_at, 'posts_count' => $this->posts_count, 'first_run' => $this->first_run, ); } }