$this->retention, 'password' => $this->password, 'duplicate' => $this->duplicate, 'completion' => $this->completion, 'disabledCategory' => $this->disabledCategory, 'categoryMinSize' => $this->categoryMinSize, 'disabledGenre' => $this->disabledGenre, 'miscOther' => $this->miscOther, 'miscHashed' => $this->miscHashed, ]; if (array_key_exists($field, $values)) { $values[$field]++; } return new self(...$values); } public function total(): int { return $this->retention + $this->password + $this->duplicate + $this->completion + $this->disabledCategory + $this->categoryMinSize + $this->disabledGenre + $this->miscOther + $this->miscHashed; } }