state, $states, true); } public function set(string $state): void { $this->state = $state; $this->frame = 0; $this->work = 0; } }