id; } public function yearName(): string { return $this->yearName; } public function status(): string { return strtolower($this->status); } public function isActive(): bool { return $this->status() === 'active'; } public function isReadonly(): bool { return ! $this->isActive(); } public function isHistorical(): bool { return ! $this->isActive(); } public function isExplicitSelection(): bool { return $this->explicitSelection; } public function toArray(): array { return [ 'id' => $this->id, 'name' => $this->yearName, 'status' => $this->status(), 'readonly' => $this->isReadonly(), 'explicitSelection' => $this->explicitSelection, ]; } }